Arg::next_line_help
next_line_help
Section titled “next_line_help ”Render the help on the line after the argument.
Example
Section titled “Example”name = "prog"[args]opt = { short = 'o', long = "long-option-flag", action = "set", next-line-help = true, 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: progargs: opt: short: o long: long-option-flag action: set next-line-help: true 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", "args": { "opt": { "short": "o", "long": "long-option-flag", "action": "set", "next-line-help": true, "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