Browse files

show usage on --help as well as -h and -?

  • Loading branch information...
1 parent ba24d3f commit a7ae94f1e238b3c987c0dfbc778984410b5b60ea @isaacs isaacs committed Oct 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cli.js
View
2 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

0 comments on commit a7ae94f

Please sign in to comment.