brew.rb: fix help regex.

Don't match `help` at the end of every string because `brew installhelp`
shouldn't really be running help.

Closes Homebrew/homebrew#36559.
Closes Homebrew/homebrew#36576.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Roberto Nibali 2015-02-05 22:05:02 +01:00 committed by Mike McQuaid
parent 8e34b4c322
commit 39ead112f3

View File

@ -82,7 +82,7 @@ begin
}
empty_argv = ARGV.empty?
help_regex = /(-h$|--help$|--usage$|-\?$|help$)/
help_regex = /(-h$|--help$|--usage$|-\?$|^help$)/
help_flag = false
cmd = nil