Permalink
Browse files

change check for option shortkey

now any falsy value can indicate no short key for an option, resulting
in better semantics
  • Loading branch information...
1 parent 494f44e commit 99ebc5a398ae9b4c6ff9200cb8e4c695090301ad @kosmotaur committed Sep 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cli.js
View
2 cli.js
@@ -270,7 +270,7 @@ cli.parse = function (opts, command_def) {
if (!(opt_list[opt] instanceof Array)) {
continue;
}
- if (opt_list[opt][0] === false) {
+ if (!opt_list[opt][0]) {
opt_list[opt][0] = opt;
}
if (o === opt || o === opt_list[opt][0]) {

0 comments on commit 99ebc5a

Please sign in to comment.