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:
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 b1016ff16..db7bcb13c 100755
--- a/cli.js
+++ b/cli.js
@@ -24,7 +24,7 @@ var fs = require("fs")
log(sys.inspect(argv), "cli")
while (arg = argv.shift()) {
- if (!command && (arg in npm.commands)) {
+ if (!command && (npm.commands.hasOwnProperty(arg))) {
if (key) {
conf[key] = true
key = null