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
diff options
context:
space:
mode:
-rwxr-xr-xcli.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli.js b/cli.js
index 2923c346c..f2e88d6b6 100755
--- a/cli.js
+++ b/cli.js
@@ -19,9 +19,8 @@ log.verbose(argv, "cli")
var conf = parseArgs(argv)
npm.argv = conf.argv.remain
-if (npm.deref(npm.argv[0])) {
- npm.command = npm.argv.shift()
-}
+if (npm.deref(npm.argv[0])) npm.command = npm.argv.shift()
+else conf.usage = true
if (conf.version) {