Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
a483e28a70
commit
506a8e4a4e
@ -49,6 +49,10 @@ pub fn build_scripts(cli: CuddleCli) -> Vec<Command> {
|
||||
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)
|
||||
}
|
||||
};
|
||||
|
@ -12,6 +12,7 @@ pub enum CuddleBase {
|
||||
#[derive(Debug, Clone, PartialEq, Deserialize)]
|
||||
pub struct CuddleShellScriptArgEnv {
|
||||
pub key: String,
|
||||
pub description: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Deserialize)]
|
||||
|
Loading…
Reference in New Issue
Block a user