about summary refs log tree commit diff stats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index c223140..ebbb45f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -8,13 +8,14 @@
 // You should have received a copy of the License along with this program.
 // If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
 
-use std::{collections::HashMap, fs};
+use std::{collections::HashMap, fs, sync::Arc};
 
 use anyhow::{bail, Context, Result};
 use app::App;
 use cache::invalidate;
 use clap::Parser;
 use cli::{CacheCommand, CheckCommand, SelectCommand, SubscriptionCommand};
+use log::info;
 use select::cmds::handle_select_cmd;
 use tokio::{
     fs::File,
@@ -56,7 +57,12 @@ async fn main() -> Result<()> {
     let app = App::new(args.db_path.unwrap_or(constants::database()?)).await?;
 
     match args.command.unwrap_or(Command::default()) {
-        Command::Download { force } => {
+        Command::Download {
+            force,
+            max_cache_size,
+        } => {
+            info!("max cache size: '{}'", max_cache_size);
+
             if force {
                 invalidate(&app, true).await?;
             }