diff --git a/cuddle_cli/src/cli/subcommands/x.rs b/cuddle_cli/src/cli/subcommands/x.rs index 8824edf..80d7013 100644 --- a/cuddle_cli/src/cli/subcommands/x.rs +++ b/cuddle_cli/src/cli/subcommands/x.rs @@ -49,6 +49,10 @@ pub fn build_scripts(cli: CuddleCli) -> Vec { arg_val = arg_val.default_value(def); } + if let Some(desc) = &arg_flag.description { + arg_val = arg_val.help(&*desc.clone().leak()) + } + cmd.arg(arg_val) } }; diff --git a/cuddle_cli/src/model.rs b/cuddle_cli/src/model.rs index 7eb8a1f..475c32f 100644 --- a/cuddle_cli/src/model.rs +++ b/cuddle_cli/src/model.rs @@ -12,6 +12,7 @@ pub enum CuddleBase { #[derive(Debug, Clone, PartialEq, Deserialize)] pub struct CuddleShellScriptArgEnv { pub key: String, + pub description: Option, } #[derive(Debug, Clone, PartialEq, Deserialize)]