diff options
author | isaacs <i@izs.me> | 2010-04-27 02:54:25 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-04-27 02:54:25 +0400 |
commit | 5eb45fc360c10d0523028ac83a63356dce428a45 (patch) | |
tree | e75ccb995b4fb68cfdac37d5b7ee03f74f4f3dd5 /cli.js | |
parent | a40838686e86c6f320f9393e9387cb50b8966962 (diff) |
handle unknown command properly
Diffstat (limited to 'cli.js')
-rwxr-xr-x | cli.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ while (arg = argv.shift()) { } if (key) conf[key] = true -if (!command) npm.commands.help.usage(sys.error) +if (!command) npm.commands.help([]) else npm.commands[command](arglist, conf, function (er, ok) { if (er) { npm.commands.help([command], conf, function () { |