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)