mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
066df7486e
Adds a setting for both `AppSettings` and an `Arg` method which allows placing the help text for a particular argument (or all arguments via the `AppSettings`) on the line after the argument itself and indented once. This is useful for when a single argument may have a very long invocation flag, or many value names which throws off the alignment of al other arguments. On a small terminal this can be terrible. Placing the text on the line below the argument solves this issue. This is also how many of the GNU utilities display their help strings for individual arguments. The final caes where this can be hepful is if the argument has a very long or detailed and complex help string that will span multiple lines. It can be visually more appealing and easier to read when those lines don't wrap as frequently since there is more space on the next line. Closes #427 |
||
---|---|---|
.. | ||
app | ||
args | ||
errors.rs | ||
fmt.rs | ||
lib.rs | ||
macros.rs | ||
osstringext.rs | ||
suggestions.rs | ||
usage_parser.rs |