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): Don't commit to '--help' that doesn't work #3169

Merged
merged 1 commit into from Dec 13, 2021

Conversation

epage
Copy link
Member

@epage epage commented Dec 13, 2021

We have two ways of fixing this

  • Making --help work
  • Don't put --help in the help output

For now, I went with the latter. I tried to make it clear what the
actual requirement is so we can pivot if needed.

Fixes #2892

This happens to also fix the interaction of DisableHelpFlag with the
help subcommand and complcations. I've added a test to help catch if we
break this by changing how we fixed the original issue.

Fixes #2724

These issues were reported against clap3. I've not tried to reproduce
these in clap2 to see if they should show up in the release notes.

We have two ways of fixing this
- Making `--help` work
- Don't put `--help` in the help output

For now, I went with the latter.  I tried to make it clear what the
actual requirement is so we can pivot if needed.

Fixes clap-rs#2892

This happens to also fix the interaction of `DisableHelpFlag` with the
help subcommand and complcations.  I've added a test to help catch if we
break this by changing how we fixed the original issue.

Fixes clap-rs#2724

These issues were reported against clap3.  I've not tried to reproduce
these in clap2 to see if they should show up in the release notes.
@pksunkara pksunkara merged commit 8eb5538 into clap-rs:master Dec 13, 2021
@epage epage deleted the help branch December 13, 2021 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants