Browse Source

display default help if wrong command was specified

master
nkzawa 9 years ago
parent
commit
0c652d73c8
  1. 3
      bin/now

3
bin/now

@ -26,7 +26,8 @@ let cmd = argv._[0];
let args = [];
if ('help' === cmd) {
cmd = argv._[1] || defaultCommand;
cmd = argv._[1];
if (!commands.has(cmd)) cmd = defaultCommand;
args.push('--help');
}

Loading…
Cancel
Save