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:
authorisaacs <i@izs.me>2010-05-02 04:02:41 +0400
committerisaacs <i@izs.me>2010-05-02 04:10:33 +0400
commitbbc2cd346302a53f852dbd4100b48defccbe2bae (patch)
tree1ea41643fb1ea2b6e22abb490b02d52e4d09e7a7 /cli.js
parent82676f554911b56267df8ca1ade8122f665f1384 (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-xcli.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli.js b/cli.js
index a08f7d8e3..6e02297ae 100755
--- a/cli.js
+++ b/cli.js
@@ -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()