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

Support unsetting/removing the default if an option/flag is set #2400

Merged
merged 3 commits into from
Mar 10, 2021

Conversation

ldm0
Copy link
Member

@ldm0 ldm0 commented Mar 9, 2021

Pick up #2296. Apply suggestions. Closes #1406 .

@ldm0 ldm0 force-pushed the unset-default branch 2 times, most recently from 5d2355a to 1b627ac Compare March 9, 2021 18:54
@ldm0 ldm0 requested a review from pksunkara March 9, 2021 18:55
@pksunkara
Copy link
Member

This is now a breaking change, right? The original PR used Into to keep it backward compatible if I recall correctly.

@ldm0
Copy link
Member Author

ldm0 commented Mar 10, 2021

This is now a breaking change, right? The original PR used Into to keep it backward compatible if I recall correctly.

Yes. But I think this is not that breaking. User can easily migrate by adding Some().

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.

unset default value if some other Arg is present (or has a specific value)
3 participants