Skip to content

Arg::next_line_help

since 0.1.0

Render the help on the line after the argument.

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" }
Terminal window
prog --help
Terminal window
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