aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/options.rb
blob: c03fdeafe55f2b5468a94e83e762ebb821d5e94b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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