diff options
| author | Max Howell | 2010-09-25 12:49:09 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 11:55:04 -0800 |
| commit | e96744eb6f94c19eb0910c61984e7121e063f970 (patch) | |
| tree | 97f73411e23785d9ddde83f50db5f8329634c8c5 /Library/Homebrew/extend/ARGV.rb | |
| parent | 521f1ec95904dcf4064d23831ca2e484b930bc26 (diff) | |
| download | brew-e96744eb6f94c19eb0910c61984e7121e063f970.tar.bz2 | |
`brew deps foo bar` now gives the dependency intersection
Rationale: this is more useful than the union, and you can still easily get the union by running the command twice and concatenating the result.
Diffstat (limited to 'Library/Homebrew/extend/ARGV.rb')
| -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 c7195bbcd..29d2c1d19 100644 --- a/Library/Homebrew/extend/ARGV.rb +++ b/Library/Homebrew/extend/ARGV.rb @@ -54,6 +54,9 @@ module HomebrewArgvExtension def build_head? flag? '--HEAD' end + def one? + flag? "--1" + end def flag? flag options_only.each do |arg| |
