ARGV.help?: anchor to end of string

Fixes Homebrew/homebrew#26735.
This commit is contained in:
Misty De Meo 2014-02-14 16:23:38 -08:00
parent 7eec2d8b5a
commit e225aea902

View File

@ -158,7 +158,7 @@ module HomebrewArgvExtension
end
def help?
empty? || grep(/(-h|--help|--usage|-\?|help)/).any?
empty? || grep(/(-h$|--help$|--usage$|-\?$|help$)/).any?
end
def version?