diff options
| author | Adam Vandenberg | 2011-03-19 09:58:42 -0700 | 
|---|---|---|
| committer | Adam Vandenberg | 2011-03-19 09:58:42 -0700 | 
| commit | 94efc8f4529a75f41973a1719d6a5a12c694e8ff (patch) | |
| tree | cca85813dae33655328716d7b1bd4ff81deef5b0 /Library/Homebrew/cmd/options.rb | |
| parent | 35334bfb43ddda04f644ab17ddf95a5e6bf92b19 (diff) | |
| download | homebrew-94efc8f4529a75f41973a1719d6a5a12c694e8ff.tar.bz2 | |
brew options: allow --all
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
| -rw-r--r-- | Library/Homebrew/cmd/options.rb | 12 | 
1 files changed, 11 insertions, 1 deletions
| diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb index c03fdeafe..273969c95 100644 --- a/Library/Homebrew/cmd/options.rb +++ b/Library/Homebrew/cmd/options.rb @@ -1,6 +1,16 @@ +require 'formula' + +def ff +  if ARGV.include? "--all" +    Formula.all +  else +    ARGV.formulae +  end +end +  module Homebrew extend self    def options -    ARGV.formulae.each do |f| +    ff.each do |f|        f.options rescue next        if ARGV.include? '--compact'          puts f.options.collect {|o| o[0]} * " " | 
