Skip to content

Commit

Permalink
brew options: allow --all
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed Mar 19, 2011
1 parent 35334bf commit 94efc8f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Library/Homebrew/cmd/options.rb
Original file line number Diff line number Diff line change
@@ -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]} * " "
Expand Down

0 comments on commit 94efc8f

Please sign in to comment.