From 21c37fbac6b94afd44da4ce0b0fc1599b8165fde Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 9 Jul 2010 12:40:41 -0700 Subject: [PATCH] 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. --- Library/Homebrew/extend/ARGV.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb index 24231292d7..e87048c0fb 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|