diff options
author | isaacs <i@izs.me> | 2010-08-24 10:16:15 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-08-24 10:16:15 +0400 |
commit | 3e58d4a0d6a19cce77e1c544e9aefeaad08f9930 (patch) | |
tree | d57bb1096481b75d25f42e308a1ccee90aec16c2 /cli.js | |
parent | 177bb5f4b4d2483101ebf7ef7d43754f703236a3 (diff) |
log better
Diffstat (limited to 'cli.js')
-rwxr-xr-x | cli.js | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |