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-08-24 10:16:15 +0400
committerisaacs <i@izs.me>2010-08-24 10:16:15 +0400
commit3e58d4a0d6a19cce77e1c544e9aefeaad08f9930 (patch)
treed57bb1096481b75d25f42e308a1ccee90aec16c2 /cli.js
parent177bb5f4b4d2483101ebf7ef7d43754f703236a3 (diff)
log better
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli.js b/cli.js
index 53836109c..7b80cf551 100755
--- a/cli.js
+++ b/cli.js
@@ -61,12 +61,11 @@ var itWorked = false
if (!command && !conf.help) {
if (!printVersion) {
// npm.commands.help([arglist.join(" ")])
- if (arglist.length) log(arglist, "unknown command")
+ if (arglist.length) log.error(arglist, "unknown command")
sys.error( "What do you want me to do?\n\n"
+ "Usage:\n"
+ " npm [flags] <command> [args]\n"
- + "Check 'man npm' or 'man npm-help' for more information\n\n"
- + "This is supposed to happen. "
+ + "Check 'npm help' for more information\n\n"
)
process.exit(1)
} else itWorked = true