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