forked from StrafesNET/asset-tool
change arg
This commit is contained in:
parent
53755caad5
commit
90aa03f86e
@ -54,8 +54,8 @@ struct DownloadSubcommand{
|
||||
cookie:String,
|
||||
#[arg(long)]
|
||||
output_folder:Option<PathBuf>,
|
||||
#[arg(long,required=true)]
|
||||
asset_id_list:Vec<AssetID>,
|
||||
#[arg(required=true)]
|
||||
asset_ids:Vec<AssetID>,
|
||||
}
|
||||
#[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)
|
||||
|
Loading…
Reference in New Issue
Block a user