brew options: allow --all

This commit is contained in:
Adam Vandenberg 2011-03-19 09:58:42 -07:00
parent 43f77f6ad0
commit 6fda61cde4

View File

@ -1,6 +1,16 @@
require 'formula'
def ff
if ARGV.include? "--all"
Formula.all
else
ARGV.formulae
end
end
module Homebrew extend self module Homebrew extend self
def options def options
ARGV.formulae.each do |f| ff.each do |f|
f.options rescue next f.options rescue next
if ARGV.include? '--compact' if ARGV.include? '--compact'
puts f.options.collect {|o| o[0]} * " " puts f.options.collect {|o| o[0]} * " "