From 23dfcadc8552c0a0aab36dda6087c4c2bf9a2b07 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 1 Jan 2024 11:59:54 -0800 Subject: [PATCH] only support one asset for now --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index e36e55f..2ef3bee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,7 +36,7 @@ struct Cli{ cookie_file:Option, #[arg(long,value_parser=parse_key_val::)] - asset_ids:AssetIDFileMap, + asset_id:(AssetID,std::path::PathBuf), #[command(subcommand)] command:Commands, @@ -77,8 +77,8 @@ async fn main()->AResult<()>{ }; match cli.command{ - Commands::Download=>download_list(cookie,cli.asset_ids).await, - Commands::Upload=>upload_list(cookie,group,cli.asset_ids).await, + Commands::Download=>download_list(cookie,vec![cli.asset_id]).await, + Commands::Upload=>upload_list(cookie,group,vec![cli.asset_id]).await, } }