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-02-22 11:59:27 +0300
committerisaacs <i@izs.me>2010-02-22 12:04:33 +0300
commit6076d506a9683855675a687b762e9a4eae569ab2 (patch)
tree2919ac104efedd3585c96d4866b1fa21e5d2e73f /cli.js
parent8c9a2fea05187a66e8166ed3c07966dbe95f940e (diff)
Typos in cli script
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 5283969f4..c84b47de1 100755
--- a/cli.js
+++ b/cli.js
@@ -12,7 +12,7 @@ var commands = ["help", "install"];
var npm = require("npm"),
sys = require("sys"),
path = require("path"),
- log = require("npm/lib/utils").log;
+ log = require("npm/utils").log;
var argv = process.argv, arg = "";
while (argv.shift() !== module.filename);
@@ -55,8 +55,8 @@ function usage () {
("[command options] The arguments to pass to the function.");
}
-var result = npm[command].apply(npm, argv.concat(function (ok, er) {
+var result = npm[command].apply(npm, argv.concat(function (er, ok) {
if (er) {
log("failed " + er.message);
} else log("ok");
-});
+}));