diff options
author | isaacs <i@izs.me> | 2010-05-19 11:21:31 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-05-19 11:21:31 +0400 |
commit | 2e212f3bfb75ae06491f0996ab024ba87480fcaf (patch) | |
tree | 82d65eae4cdf12df04b69bc8604425ed2a4df600 /cli.js | |
parent | c013878d109b28aa0a51de170f8923b2a2df4e08 (diff) |
Output of "npm" with no commands is more clear
Diffstat (limited to 'cli.js')
-rwxr-xr-x | cli.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -44,9 +44,11 @@ for (var k in conf) npm.config.set(k, conf[k]) if (!command) { // npm.commands.help([arglist.join(" ")]) if (arglist.length) log(arglist, "unknown command") - sys.error( "Usage:\n" + 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" + + "Check 'man npm' or 'man npm-help' for more information\n\n" + + "This is supposed to happen. " ) } else npm.commands[command](arglist, function (er, ok) { if (er) { |