diff options
Diffstat (limited to 'cli.js')
-rwxr-xr-x | cli.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |