Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cli.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-05-17 01:46:30 +0400
committerisaacs <i@izs.me>2010-05-17 01:46:30 +0400
commit327404c0e536bbcc8c277d7738da77ec5a9e647f (patch)
treed1eb3ca5838fbc30bfd0611037d1af57fcbc78e4 /cli.js
parentbafb5aa9632d063d567cb9cefc8867ff11f00b3d (diff)
show the unrecognized command if one was provided
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli.js b/cli.js
index 300aa2209..282f428c2 100755
--- a/cli.js
+++ b/cli.js
@@ -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"