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

When specifying style multiple times the last occurence wins #371

Merged
merged 4 commits into from
Oct 21, 2018

Conversation

sindreij
Copy link
Contributor

Closes: #367

.overrides_with("plain")
.overrides_with("number")
// Cannot use clap's built in validation because we have to turn off clap's delimiters
.validator(|val| {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@sharkdp
Copy link
Owner

sharkdp commented Oct 21, 2018

Awesome, thank you very much for your contribution!

I had to remove clap's splitting of the arguments in style. When using clap's splitting with overriding, it only keep the last one in the set. So --style numbers,changes becomes changes.

Yes, a little bit unfortunate, but I think your solution is the only way to handle this.

@sharkdp sharkdp merged commit abcd09f into sharkdp:master Oct 21, 2018
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.

2 participants