Skip to content

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

epage added 4 commits January 17, 2022 08:33
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