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-05-19 11:21:31 +0400
committerisaacs <i@izs.me>2010-05-19 11:21:31 +0400
commit2e212f3bfb75ae06491f0996ab024ba87480fcaf (patch)
tree82d65eae4cdf12df04b69bc8604425ed2a4df600 /cli.js
parentc013878d109b28aa0a51de170f8923b2a2df4e08 (diff)
Output of "npm" with no commands is more clear
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli.js b/cli.js
index 282f428c2..96b52edfe 100755
--- a/cli.js
+++ b/cli.js
@@ -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) {