You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
program
.name('test')
.command('mycommand')
.option('-c, --cheese [type]', 'optionally specify the type of cheese')
.action(function(cmd) {
val = cmd.cheese;
});
And calling it like this:
test mycommand --cheese ""
I would expect the value of "val" to be an empty string, but it is actually undefined.
The text was updated successfully, but these errors were encountered:
sorohan
pushed a commit
to sorohan/commander.js
that referenced
this issue
Dec 4, 2017
For this program:
And calling it like this:
I would expect the value of "val" to be an empty string, but it is actually undefined.
The text was updated successfully, but these errors were encountered: