Command::help_expected
help_expected
Section titled “help_expected ”Panic if help descriptions are omitted.
Example
Section titled “Example”name = "myprog"help-expected = true[args]foo = { help = "It does foo stuff" }
name: myproghelp-expected: trueargs: foo: help: It does foo stuff
{ "name": "myprog", "help-expected": true, "args": { "foo": { "help": "It does foo stuff" } }}
myprog --help
Output
Section titled “Output”Usage: myprog [foo]
Arguments: [foo] It does foo stuff
Options: -h, --help Print help