diff options
| author | Adam Vandenberg | 2011-03-10 21:32:10 -0800 | 
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 11:55:10 -0800 | 
| commit | 485a6ee5051d3d6930090ada39e759949c3feb2f (patch) | |
| tree | 89975f7b512af64137e311c88c431a24d78dcd79 /Library/Homebrew/cmd/options.rb | |
| parent | 6f2e80e18482219be307e25b9a1c6d86b898469d (diff) | |
| download | homebrew-485a6ee5051d3d6930090ada39e759949c3feb2f.tar.bz2 | |
'brew options' now an official command
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
| -rw-r--r-- | Library/Homebrew/cmd/options.rb | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb new file mode 100644 index 000000000..c03fdeafe --- /dev/null +++ b/Library/Homebrew/cmd/options.rb @@ -0,0 +1,17 @@ +module Homebrew extend self +  def options +    ARGV.formulae.each do |f| +      f.options rescue next +      if ARGV.include? '--compact' +        puts f.options.collect {|o| o[0]} * " " +      else +        puts f.name +        f.options.each do |o| +          puts o[0] +          puts "\t"+o[1] +        end +        puts +      end +    end +  end +end
\ No newline at end of file | 
