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-09-29 05:10:13 +0400
committerisaacs <i@izs.me>2010-09-29 05:10:13 +0400
commitad2b1854051f98b630d21e9bdc828aa2092acfa7 (patch)
treed5d14f58e8cf09d211c2b060e2bb449373a984b4 /cli.js
parent222ac0a5ea80a21f613ba83ab37766346726a89c (diff)
Bugfix
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 5ebc0fe3a..0cfe744e0 100755
--- a/cli.js
+++ b/cli.js
@@ -26,7 +26,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 = "--usage"
if (!command && (npm.commands.hasOwnProperty(arg))) {
if (key) {
conf[key] = true