From ad2b1854051f98b630d21e9bdc828aa2092acfa7 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 28 Sep 2010 18:10:13 -0700 Subject: Bugfix --- cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli.js') 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 -- cgit v1.2.3