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-10-19 04:17:11 +0400
committerisaacs <i@izs.me>2010-10-19 04:17:11 +0400
commita7ae94f1e238b3c987c0dfbc778984410b5b60ea (patch)
tree0af14c9484b53a66b43cb7e9c8a6b319d9e2a3e4 /cli.js
parentba24d3f0314d06d27431c6a1bec4bb291d99be6e (diff)
show usage on --help as well as -h and -?
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli.js b/cli.js
index 830c17dda..990ae56c9 100755
--- a/cli.js
+++ b/cli.js
@@ -27,7 +27,7 @@ var fs = require("./lib/utils/graceful-fs")
log.verbose(argv, "cli")
while (arg = argv.shift()) {
- if (!key && (arg.match(/^-+[h?]$/i))) arg = "--usage"
+ if (!key && (arg.match(/^-+[h?]$/i) || arg.match(/^-+help$/i))) arg = "--usage"
if (!command && (npm.commands.hasOwnProperty(arg))) {
if (key) {
conf[key] = true