aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/options.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-19 09:58:42 -0700
committerAdam Vandenberg2011-03-19 09:58:42 -0700
commit6fda61cde4ff1568f289ee6b989e19a1d1bf6e05 (patch)
tree177995fe25660ffb826a25c090db2515880caccb /Library/Homebrew/cmd/options.rb
parent43f77f6ad085b8dbe0a64da1914326b98d33aed1 (diff)
downloadbrew-6fda61cde4ff1568f289ee6b989e19a1d1bf6e05.tar.bz2
brew options: allow --all
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
-rw-r--r--Library/Homebrew/cmd/options.rb12
1 files changed, 11 insertions, 1 deletions
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]} * " "