Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(help):Be dense on short next line help #4190

Merged
merged 1 commit into from Sep 7, 2022
Merged

Conversation

epage
Copy link
Member

@epage epage commented Sep 7, 2022

If short help is too long for the terminal, clap will automatically switch to next line help. As part of next line help for longs, we add a blank line between args. This helps make the args clearer when dealing with multiple paragraphs. However, its not as much needed for short and subcommands (always short), so now short matches subcommands.

This was inspired by #3300 and a part of #4132

@epage epage mentioned this pull request Sep 7, 2022
If short help is too long for the terminal, clap will automatically
switch to next line help.  As part of next line help for longs, we add a
blank line between args.  This helps make the args clearer when dealing
with multiple paragraphs.  However, its not as much needed for short and
subcommands (always short), so now short matches subcommands.

This was inspired by clap-rs#3300 and a part of clap-rs#4132
@epage epage merged commit 65c2897 into clap-rs:master Sep 7, 2022
@epage epage deleted the nxt branch September 7, 2022 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant