From 3a165b3bd3266da3d18daf9a67c502c620f0c5cc Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 16 Aug 2024 17:41:55 -0700 Subject: [PATCH] fix description --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 099e91f..8a34a94 100644 --- a/src/main.rs +++ b/src/main.rs @@ -138,7 +138,7 @@ struct CreateAssetMediasSubcommand{ #[arg(long,group="api_key",required=true)] api_key_file:Option, #[arg(long)] - asset_type:AssetType, + description:Option, #[arg(long,group="creator",required=true)] creator_user_id:Option, #[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()), other=>Err(anyhow!("Invalid creator {other:?}"))?, }, + description:subcommand.description.unwrap_or_else(||String::with_capacity(0)), input_files:subcommand.input_files, expected_price:subcommand.expected_price, }).await,