Skip to content

Arg::hide_short_help

since 0.1.0

Hides an argument from short help (-h).

name = "prog"
[args]
cfg = { long = "config", hide-short-help = true, help = "Some help text describing the --config arg" }
Terminal window
prog -h
Terminal window
Usage: prog [OPTIONS]
Options:
-h, --help Print help (see more with '--help')
name = "prog"
[args]
cfg = { long = "config", hide-short-help = true, help = "Some help text describing the --config arg" }
Terminal window
prog --help
Terminal window
Usage: prog [OPTIONS]
Options:
--config <cfg>
Some help text describing the --config arg
-h, --help
Print help (see a summary with '-h')