Skip to content

when specifying options, the "--no" version of a flag must appear after the flag #238

@boneskull

Description

@boneskull

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCommander is not working as intended

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions