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

Requires and Conflicts should ignore default_value #3420

Merged
merged 8 commits into from Feb 8, 2022

Conversation

epage
Copy link
Member

@epage epage commented Feb 8, 2022

This supersedes #3020

Fixes #3076

@epage epage merged commit 15f0178 into clap-rs:master Feb 8, 2022
@epage epage deleted the default branch February 8, 2022 18:59
@pksunkara
Copy link
Member

Ah, my bad. I missed the previous notification. I was under the impression that old PR has already been merged.

epage added a commit to epage/clap that referenced this pull request Jun 6, 2022
This is a follow up to clap-rs#3420.  Its easy to overlook this because it is only
useful for the conditionals (we actually prevent applying unconditional
defaults to unconditional requireds).  This became apparent with the
increased use of defaults with `SetTrue`.

As always, there is the question of when is a bug fix a breaking change.
I'm going to consider this safe since we prevent some instances of this
from even happening and we already did clap-rs#3420 and this is in line with
those.
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.

Require rules ignore a defaulted value
2 participants