aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-09 12:40:41 -0700
committerAdam Vandenberg2010-07-16 09:09:39 -0700
commit511d309374f693231938eecfda7202c2a6ce3e4d (patch)
tree08783d129a434ec5977ef27eae3083f5f932b53c /Library/Homebrew
parent418902f7beabf6cf724c9e84cf5294aed5fc376e (diff)
downloadhomebrew-511d309374f693231938eecfda7202c2a6ce3e4d.tar.bz2
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.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/extend/ARGV.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index 24231292d..e87048c0f 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -51,6 +51,9 @@ module HomebrewArgvExtension
def interactive?
flag? '--interactive'
end
+ def build_head?
+ flag? '--HEAD'
+ end
def flag? flag
options.each do |arg|