-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Allow option to conflict with the negation of another option. #2175
Comments
There is not a separate option name for Try the behaviour with:
Example file: https://github.com/tj/commander.js/blob/master/examples/options-conflicts.js |
I know, I was trying to request a feature. Not sure if this was the right way to do so. Could you guide me please? |
I have marked this issue as a feature request. It got left out of the implementation because it didn't fit into the pattern of specifying the internal option name, and was difficult to implement. |
What would be useful is a real-world example. I understand you want to add a conflict with just the negative option of a dual positive/negative pair, like |
For example, if I have two options Hope this is a clear example. |
This issue has not had any activity in over six months. It isn't likely to get acted on due to this report. There isn't explicit support for negated options, but proper support might require a significant rework of the implementation. Feel free to open a new issue if it comes up again, with new information and renewed interest. Thank you for your contributions. |
A simple example will make things clear
What I am trying achieve is, the option of --no-cheese should not be passed with --cheese-type.
Currently, this is allowed since
noCheese
is not seen as a stand alone option, instead it is mapped tocheese
.The text was updated successfully, but these errors were encountered: