Command::next_line_help
next_line_help
Section titled “next_line_help ”Places the help string for all arguments and subcommands on the line after them.
Example
Section titled “Example”name = "prog"next-line-help = true[args]opt = { short = 'o', long = "long-option-flag", action = "set", value-names = ["value1", "value2"], help = "Some really long help and complex\nhelp that makes more sense to be\non a line after the option" }
name: prognext-line-help: trueargs: opt: short: o long: long-option-flag action: set value-names: - value1 - value2 help: |- Some really long help and complex help that makes more sense to be on a line after the option
{ "name": "prog", "next-line-help": true, "args": { "opt": { "short": "o", "long": "long-option-flag", "action": "set", "value-names": [ "value1", "value2" ], "help": "Some really long help and complex\nhelp that makes more sense to be\non a line after the option" } }}
prog --help
Output
Section titled “Output”Usage: prog [OPTIONS]
Options: -o, --long-option-flag <value1> <value2> Some really long help and complex help that makes more sense to be on a line after the option -h, --help Print help