From 90aa03f86efbbc2246d50c1bbadae749f6200a55 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sat, 20 Apr 2024 14:43:02 -0700 Subject: [PATCH] change arg --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 552a70c..6b8abb4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -54,8 +54,8 @@ struct DownloadSubcommand{ cookie:String, #[arg(long)] output_folder:Option, - #[arg(long,required=true)] - asset_id_list:Vec, + #[arg(required=true)] + asset_ids:Vec, } #[derive(Args)] struct UploadSubcommand{ @@ -189,7 +189,7 @@ async fn main()->AResult<()>{ let output_folder=subcommand.output_folder.unwrap_or_else(||std::env::current_dir().unwrap()); download_list( Cookie::from_type(subcommand.cookie_type,subcommand.cookie).await?.0, - subcommand.asset_id_list.into_iter().map(|asset_id|{ + subcommand.asset_ids.into_iter().map(|asset_id|{ let mut path=output_folder.clone(); path.push(asset_id.to_string()); (asset_id,path)