diff options
| author | Adam Vandenberg | 2010-07-09 12:40:41 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-16 09:09:39 -0700 |
| commit | 21c37fbac6b94afd44da4ce0b0fc1599b8165fde (patch) | |
| tree | 212c92b2b830fece5f2d2efe789447448e9c164d /Library | |
| parent | 161296e5c6e7526a294787662f7f9ee169c715dc (diff) | |
| download | brew-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.rb | 3 |
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| |
