aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-09 12:40:41 -0700
committerAdam Vandenberg2010-07-16 09:09:39 -0700
commit21c37fbac6b94afd44da4ce0b0fc1599b8165fde (patch)
tree212c92b2b830fece5f2d2efe789447448e9c164d /Library
parent161296e5c6e7526a294787662f7f9ee169c715dc (diff)
downloadbrew-21c37fbac6b94afd44da4ce0b0fc1599b8165fde.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')
-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|