info: display used options for all installed kegs

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-01-01 15:26:45 -06:00
parent dc1be896d8
commit d2bf7b4e2c

View File

@ -58,17 +58,14 @@ module Homebrew extend self
print "#{keg} (#{keg.abv})"
print " *" if f.installed_prefix == keg and kegs.length > 1
puts
end
else
puts "Not installed"
end
if f.installed?
tab = Tab.for_formula f
tab = Tab.for_keg keg
unless tab.used_options.empty?
puts " Installed with: #{tab.used_options*', '}"
end
end
else
puts "Not installed"
end
the_caveats = (f.caveats || "").strip
unless the_caveats.empty?