diff options
author | isaacs <i@izs.me> | 2010-10-19 04:17:11 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-10-19 04:17:11 +0400 |
commit | a7ae94f1e238b3c987c0dfbc778984410b5b60ea (patch) | |
tree | 0af14c9484b53a66b43cb7e9c8a6b319d9e2a3e4 /cli.js | |
parent | ba24d3f0314d06d27431c6a1bec4bb291d99be6e (diff) |
show usage on --help as well as -h and -?
Diffstat (limited to 'cli.js')
-rwxr-xr-x | cli.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |