fix description

This commit is contained in:
Quaternions 2024-08-16 17:41:55 -07:00
parent bc4776ae6c
commit 3a165b3bd3

View File

@ -138,7 +138,7 @@ struct CreateAssetMediasSubcommand{
#[arg(long,group="api_key",required=true)] #[arg(long,group="api_key",required=true)]
api_key_file:Option<PathBuf>, api_key_file:Option<PathBuf>,
#[arg(long)] #[arg(long)]
asset_type:AssetType, description:Option<String>,
#[arg(long,group="creator",required=true)] #[arg(long,group="creator",required=true)]
creator_user_id:Option<u64>, creator_user_id:Option<u64>,
#[arg(long,group="creator",required=true)] #[arg(long,group="creator",required=true)]
@ -456,6 +456,7 @@ async fn main()->AResult<()>{
(None,Some(group_id))=>rbx_asset::cloud::Creator::groupId(group_id.to_string()), (None,Some(group_id))=>rbx_asset::cloud::Creator::groupId(group_id.to_string()),
other=>Err(anyhow!("Invalid creator {other:?}"))?, other=>Err(anyhow!("Invalid creator {other:?}"))?,
}, },
description:subcommand.description.unwrap_or_else(||String::with_capacity(0)),
input_files:subcommand.input_files, input_files:subcommand.input_files,
expected_price:subcommand.expected_price, expected_price:subcommand.expected_price,
}).await, }).await,