-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
On and off switches are not working #108
Copy link
Copy link
Closed
Description
If I try
program.command('start')
.option('--auto-watch', 'Description')
.option('--no-auto-watch', 'Description')
.action(function(options) {
console.log(options.autoWatch);
});I get the following output:
$ node program.js start --auto-watch
false
$ node program.js start --no-auto-watch
false
$ node program.js start
trueThat should not happen. I need the first one to be true. Also if I try to set a default value of true that won't work either.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels