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-04-27 02:54:25 +0400
committerisaacs <i@izs.me>2010-04-27 02:54:25 +0400
commit5eb45fc360c10d0523028ac83a63356dce428a45 (patch)
treee75ccb995b4fb68cfdac37d5b7ee03f74f4f3dd5 /cli.js
parenta40838686e86c6f320f9393e9387cb50b8966962 (diff)
handle unknown command properly
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli.js b/cli.js
index c37cc4928..e09c569a8 100755
--- a/cli.js
+++ b/cli.js
@@ -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 () {