diff --git a/src/main.rs b/src/main.rs index 5c5fb0b..33b14d5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,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, @@ -76,8 +76,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, } }