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 options, the "--no" version of a flag must appear after the flag #238

Closed
boneskull opened this issue Aug 5, 2014 · 3 comments
Labels
bug Commander is not working as intended

Comments

@boneskull
Copy link

We had this problem in mochajs/mocha#1296.

The below works great:

  .option('-c, --colors', 'force enabling of colors')
  .option('-C, --no-colors', 'force disabling of colors')

In the example below, --no-colors does not work:

  .option('-C, --no-colors', 'force disabling of colors')
  .option('-c, --colors', 'force enabling of colors')
@zhiyelee
Copy link
Collaborator

I found this problem too, and I think treated the common used word no as a key work is not proper enough.
We can improve it.

@himynameisdave
Copy link

Would like this option, there are plenty of valid reasons for wanting to do this.

At the very least, please make it clear in the docs that --no won't work, thanks

@shadowspawn
Copy link
Collaborator

Closing in favour of #108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Commander is not working as intended
Projects
None yet
Development

No branches or pull requests

5 participants