Skip to content

Command::max_term_width

since 0.1.0

Limit the line length for wrapping help when using the current terminal’s width.

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