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): Prefer short version over long version #3232

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

epage
Copy link
Member

@epage epage commented Dec 30, 2021

When we got #3193, we decided in #3196 that --help will give a summary
for other commands (subcmd --help in this case) but not show the long
version of the output for that other command.

Now with #3215, I think the case is similar for --help not showing the
long version but instead preferring the short version and encouraging
people to run --version.

Originally. clap only showed the short version or nothing. This was
changed in #2369 without fanfare to prefer the long version over short.
Now are we preferring short version over the long version always, just
like all other help.

Fixes #3215

When we got clap-rs#3193, we decided in clap-rs#3196 that `--help` will give a summary
for other commands (`subcmd --help` in this case) but not show the long
version of the output for that other command.

Now with clap-rs#3215, I think the case is similar for `--help` not showing the
long version but instead preferring the short version and encouraging
people to run `--version`.

Originally. clap only showed the short version or nothing.  This was
changed in clap-rs#2369 without fanfare to prefer the long version over short.
Now are we preferring short version over the long version always, just
like all other help.

Fixes clap-rs#3215
@epage epage merged commit e20c034 into clap-rs:master Dec 30, 2021
@epage epage deleted the version branch December 30, 2021 18:41
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.

long_help() output includes output from long_version() instead of short_version()
1 participant