Arg::hide_short_help
hide_short_help
Section titled “hide_short_help ”Hides an argument from short help (-h
).
Examples
Section titled “Examples”Example 1
Section titled “Example 1”name = "prog"[args]cfg = { long = "config", hide-short-help = true, help = "Some help text describing the --config arg" }
name: progargs: cfg: long: config hide-short-help: true help: Some help text describing the --config arg
{ "name": "prog", "args": { "cfg": { "long": "config", "hide-short-help": true, "help": "Some help text describing the --config arg" } }}
prog -h
Output
Section titled “Output”Usage: prog [OPTIONS]
Options: -h, --help Print help (see more with '--help')
Example 2
Section titled “Example 2”name = "prog"[args]cfg = { long = "config", hide-short-help = true, help = "Some help text describing the --config arg" }
name: progargs: cfg: long: config hide-short-help: true help: Some help text describing the --config arg
{ "name": "prog", "args": { "cfg": { "long": "config", "hide-short-help": true, "help": "Some help text describing the --config arg" } }}
prog --help
Output
Section titled “Output”Usage: prog [OPTIONS]
Options: --config <cfg> Some help text describing the --config arg
-h, --help Print help (see a summary with '-h')