From 94efc8f4529a75f41973a1719d6a5a12c694e8ff Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 19 Mar 2011 09:58:42 -0700 Subject: brew options: allow --all --- Library/Homebrew/cmd/options.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd/options.rb') 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]} * " " -- cgit v1.2.3