diff options
author | isaacs <i@izs.me> | 2010-07-19 05:00:42 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-07-25 05:51:19 +0400 |
commit | 26fccd4b698f71c1285b5dcb88c090b4557bccc3 (patch) | |
tree | c9fb45858661417bd58ec1b1e1de2e1239d2470e /cli.js | |
parent | 2343cec599c3552cec1edc328c63903d0abc0e8a (diff) |
Don't load command logic until/unless necessary
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 |