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): Always respect DisableColoredHelp #3305

Merged
merged 4 commits into from Jan 17, 2022
Merged

Conversation

epage
Copy link
Member

@epage epage commented Jan 17, 2022

We might be able to handle version/help before propagation but I didn't
want to hold up this fix for that to happen and increase the risk
associated with this fix.

Fixes #3298

We might be able to handle version/help before propagation but I didn't
want to hold up this fix for that to happen and increase the risk
associated with this fix.

Fixes clap-rs#3298
The main motivation was to reduce special cases by putting all of the
logic in one place.
@epage epage merged commit ffe6bff into clap-rs:master Jan 17, 2022
@epage epage deleted the help branch January 17, 2022 15:35
epage added a commit to epage/clap that referenced this pull request Jan 18, 2022
I thought I was adding a test in clap-rs#3305.  Maybe I considered the
clap_complete changes sufficient for this.  Doing more `debug_assert`s
would be good also.

Unsetting `PropagateVersion` helps in some cases but we need to unset it
globally to override the global propagation.

Fixes clap-rs#3310
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.

help help is colorized with DisableColoredHelp
1 participant