diff options
author | isaacs <i@izs.me> | 2010-05-17 01:46:30 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-05-17 01:46:30 +0400 |
commit | 327404c0e536bbcc8c277d7738da77ec5a9e647f (patch) | |
tree | d1eb3ca5838fbc30bfd0611037d1af57fcbc78e4 /cli.js | |
parent | bafb5aa9632d063d567cb9cefc8867ff11f00b3d (diff) |
show the unrecognized command if one was provided
Diffstat (limited to 'cli.js')
-rwxr-xr-x | cli.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -43,6 +43,7 @@ for (var k in conf) npm.config.set(k, conf[k]) if (!command) { // npm.commands.help([arglist.join(" ")]) + if (arglist.length) log(arglist, "unknown command") sys.error( "Usage:\n" + " npm [flags] <command> [args]\n" + "Check 'man npm' or 'man npm-help' for more information" |