diff options
author | isaacs <i@izs.me> | 2010-05-02 04:02:41 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-05-02 04:10:33 +0400 |
commit | bbc2cd346302a53f852dbd4100b48defccbe2bae (patch) | |
tree | 1ea41643fb1ea2b6e22abb490b02d52e4d09e7a7 /cli.js | |
parent | 82676f554911b56267df8ca1ade8122f665f1384 (diff) |
Remove the 'conf' argument that all the commands were taking, now that they can just look at npm.config.get
Diffstat (limited to 'cli.js')
-rwxr-xr-x | cli.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -36,13 +36,13 @@ while (arg = argv.shift()) { } else arglist.push(arg) } if (key) conf[key] = true - +npm.argv = arglist for (var k in conf) npm.config.set(k, conf[k]) if (!command) npm.commands.help([arglist.join(" ")]) -else npm.commands[command](arglist, conf, function (er, ok) { +else npm.commands[command](arglist, function (er, ok) { if (er) { - npm.commands.help([command], conf, function () { + npm.commands.help([command], function () { log(er.stack, "failed") process.stdout.flush() process.stderr.flush() |