Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix wrong check for command list

command_list never would be falsy
  • Loading branch information...
commit 494f44eaaceaab34d6cca38065ef621e99fe945e 1 parent e1aa65a
@kosmotaur authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cli.js
View
2  cli.js
@@ -586,7 +586,7 @@ cli.getUsage = function () {
return truncated;
};
- usage = usage || cli.app + ' [OPTIONS]' + (command_list ? ' <command>' : '') + ' [ARGS]';
+ usage = usage || cli.app + ' [OPTIONS]' + (command_list.length ? ' <command>' : '') + ' [ARGS]';
console.error('\x1b[1mUsage\x1b[0m:\n ' + usage);
console.error('\n\x1b[1mOptions\x1b[0m: ');
for (opt in opt_list) {
Please sign in to comment.
Something went wrong with that request. Please try again.