Skip to content
Snippets Groups Projects
Commit e225aea9 authored by Misty De Meo's avatar Misty De Meo
Browse files

ARGV.help?: anchor to end of string

Fixes Homebrew/homebrew#26735.
parent 7eec2d8b
No related branches found
No related tags found
No related merge requests found
......@@ -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?
......
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