Command::max_term_width
max_term_width
Section titled “max_term_width ”Limit the line length for wrapping help when using the current terminal’s width.
Example
Section titled “Example”name = "myprog"max-term-width = 80[args]cfg = { long = "config", help = "This is a very long help message that is longer than 80 characters and so will wrap" }
name: myprogmax-term-width: 80args: cfg: long: config help: This is a very long help message that is longer than 80 characters and so will wrap
{ "name": "myprog", "max-term-width": 80, "args": { "cfg": { "long": "config", "help": "This is a very long help message that is longer than 80 characters and so will wrap" } }}
myprog --help
Output
Section titled “Output”Usage: myprog [OPTIONS]
Options: --config <cfg> This is a very long help message that is longer than 80 characters and so will wrap -h, --help Print help