Add ARGV.build_head? and use it.

This allows both "--HEAD" and "-H" to be used consistently, which was the
intention in the first place.
This commit is contained in:
Adam Vandenberg 2010-07-09 12:40:41 -07:00
parent 161296e5c6
commit 21c37fbac6

View File

@ -51,6 +51,9 @@ module HomebrewArgvExtension
def interactive?
flag? '--interactive'
end
def build_head?
flag? '--HEAD'
end
def flag? flag
options.each do |arg|