From 52ba44c6be1d7cb6b4125f08c37ecee6412ad33b Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 19 Apr 2024 00:18:20 -0700 Subject: [PATCH] named args --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index 192f599..4a834f4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,11 +24,14 @@ enum Commands { #[derive(Args)] struct DownloadTexturesSubcommand { + #[arg(long,required=true)] roblox_files:Vec } #[derive(Args)] struct ExtractTexturesSubcommand { + #[arg(long)] bsp_file:PathBuf, + #[arg(long)] vpk_dir_files:Vec } #[derive(Args)] @@ -36,14 +39,17 @@ struct ConvertTexturesSubcommand { } #[derive(Args)] struct VPKContentsSubcommand { + #[arg(long)] input_file:PathBuf, } #[derive(Args)] struct BSPContentsSubcommand { + #[arg(long)] input_file:PathBuf, } #[derive(Args)] struct DownloadMeshesSubcommand { + #[arg(long,required=true)] roblox_files:Vec } #[derive(Args)]