Command::term_width
term_width
Section titled “term_width ”Sets the terminal width at which to wrap help messages.
Example
Section titled “Example”name = "myprog"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: myprogterm-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", "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