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 #77

Closed
boneskull opened this issue Aug 5, 2014 · 2 comments

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')
@ggilder
Copy link
Collaborator

ggilder commented Aug 5, 2014

Based on the reference I think you probably want to report this issue on commander.js. This is the ruby version.

@ggilder ggilder closed this as completed Aug 5, 2014
@boneskull
Copy link
Author

@ggilder Sorry!

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

No branches or pull requests

2 participants