Skip to content

Commit

Permalink
ARGV.help?: anchor to end of string
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Feb 15, 2014
1 parent f872b26 commit 1cb51e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/extend/ARGV.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def force_bottle?
end

def help?
empty? || grep(/(-h|--help|--usage|-\?|help)/).any?
empty? || grep(/(-h$|--help$|--usage$|-\?$|help$)/).any?
end

def version?
Expand Down

0 comments on commit 1cb51e2

Please sign in to comment.