feat(rust): reduce output for short help command
Reduces amount of information When help is invoked using `ockam -h` as opposed to `ockam --help`
@@ -223,15 +223,20 @@ pub enum OutputFormat {
pub struct ExportCommandArgs {
/// Export the command input to a file.
/// Used to run a set of commands after creating a node with `ockam node create --run commands.json`
- #[arg(global = true, long = "export")]
+ #[arg(global = true, long = "export", hide_short_help = true)]
export_path: Option<PathBuf>,
/// Section of the config file to export the command to.
- #[arg(global = true, long = "export-section", value_enum)]
+ #[arg(
+ global = true,
+ long = "export-section",
+ hide_short_help = true,
+ value_enum
+ )]
section: Option<CommandSection>,
/// Flag to indicate that the exported command should pipe its output.
- #[arg(global = true, long, action = ArgAction::SetTrue)]
+ #[arg(global = true, long, hide_short_help = true, action = ArgAction::SetTrue)]
pipe: Option<bool>,
}
