-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
.conflicts_with error messages not symmetric #718
Comments
Thanks for posting this. Yeah it has to do with the order in which For your first example, the way it works is:
For the second example it goes a little differently:
But since what you're posing makes 100% sense, I do need to look at a way to make this more symmetric and less confusing. |
@kbknapp You could store all conflicts symmetrically, manufacturing and adding to a conflict group. For instance, when you call |
Yeah, I'm going to look at some of those possibilities. I'll first have to get re-aquainted with the code since it's been a while since I looked at that piece 😜 I know some easy ways to do it, but I'd also like to keep from allocating more than I absolutely need to. |
@joshtriplett I was able to get this working. Once #720 merges let me know if v2.16.4 is more along the lines of what you're thinking. |
Looks promising. I look forward to testing it. |
The documentation for
conflicts_with
says:However, the error messages for the conflict differ based on whether I provide one
conflicts_with
or both.If I mark the arguments
--rfc
and--subject-prefix
as each conflicting with each other, then passing both will give an error message that treats the second such argument as the error and suggest removing it, which makes sense:However, if I only call
.conflicts_with("subject-prefix")
on--rfc
, but not the other way around, the error message always marks--subject-prefix
as the error and always suggests dropping--subject-prefix
:The text was updated successfully, but these errors were encountered: