only support one asset for now

This commit is contained in:
Quaternions 2024-01-01 11:59:54 -08:00
parent 1075d59a91
commit 23dfcadc85

View File

@ -36,7 +36,7 @@ struct Cli{
cookie_file:Option<std::path::PathBuf>,
#[arg(long,value_parser=parse_key_val::<AssetID,std::path::PathBuf>)]
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,
}
}