Skip to content
Snippets Groups Projects
Commit 39ead112 authored by Roberto Nibali's avatar Roberto Nibali Committed by Mike McQuaid
Browse files

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: default avatarMike McQuaid <mike@mikemcquaid.com>
parent 8e34b4c3
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,7 @@ begin ...@@ -82,7 +82,7 @@ begin
} }
empty_argv = ARGV.empty? empty_argv = ARGV.empty?
help_regex = /(-h$|--help$|--usage$|-\?$|help$)/ help_regex = /(-h$|--help$|--usage$|-\?$|^help$)/
help_flag = false help_flag = false
cmd = nil cmd = nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment