-
-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Labels
Description
Issue Type
- Bug Report
- Feature Request
- Other
Steps to repro
// test.js
const cli = require('cac')();
cli.option('--no-aaa-bbb').option('--no-ccc');
const parsed = cli.parse();
console.log(JSON.stringify(parsed, null, 2));$ node test.js
{
"args": [],
"options": {
"--": [],
"aaa-bbb": true,
"ccc": true
}
}
$ node test.js --no-aaa-bbb
{
"args": [],
"options": {
"--": [],
"aaa-bbb": true,
"ccc": true,
"aaaBbb": false
}
}
$ node test.js --no-ccc
{
"args": [],
"options": {
"--": [],
"aaa-bbb": true,
"ccc": false
}
}The "aaa-bbb": true is always there.
Info
- CAC version: 6.5.3