Arg::help
since 0.1.0
Terminal window
Terminal window
Sets the description of the argument for short help (-h
).
Example
Section titled “Example”name = "prog"[args]cfg = { long = "config", help = "Some help text describing the --config arg" }
name: progargs: cfg: long: config help: Some help text describing the --config arg
{ "name": "prog", "args": { "cfg": { "long": "config", "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