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!: value_name/value_names should not append #2690

Merged
merged 1 commit into from
Aug 13, 2021

Conversation

epage
Copy link
Member

@epage epage commented Aug 13, 2021

Instead they should behave like default_value/default_values.

In implementingt this, I didn't see any reason to be using a VecMap.
In fact, this helped simplify the code / make intent clearer.

With this, we are also able to simplify the derive macro work from #2633.

Fixes #2634

BREAKING CHANGE: value_name/value_names always overwrite, rather
than append. We expect the impact to be minimal.

@epage epage force-pushed the value_name branch 3 times, most recently from 36df30f to ee5a125 Compare August 13, 2021 20:31
Instead they should behave like `default_value`/`default_values`.

In implementingt this, I didn't see any reason to be using a `VecMap`.
In fact, this helped simplify the code / make intent clearer.

With this, we are also able to simplify the derive macro work from clap-rs#2633.

Fixes clap-rs#2634

BREAKING CHANGE: `value_name`/`value_names` always overwrite, rather
than append.  We expect the impact to be minimal.
@pksunkara pksunkara enabled auto-merge August 13, 2021 21:08
@pksunkara pksunkara merged commit 09257a8 into clap-rs:master Aug 13, 2021
@epage epage deleted the value_name branch October 1, 2021 18:45
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.

value_name appends, rather than overrides
2 participants