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:
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