aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/info.rb
diff options
context:
space:
mode:
authorJack Nagel2012-01-01 15:26:45 -0600
committerJack Nagel2012-01-03 19:50:19 -0600
commitd2bf7b4e2c18bb4a1486ca1af174daf32d89154d (patch)
tree2f22939b4ce04c4451f153fcd9328ba06e78235e /Library/Homebrew/cmd/info.rb
parentdc1be896d8edb63cf1afd168a331a86b6fe2f289 (diff)
downloadbrew-d2bf7b4e2c18bb4a1486ca1af174daf32d89154d.tar.bz2
info: display used options for all installed kegs
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd/info.rb')
-rw-r--r--Library/Homebrew/cmd/info.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index 5872f8834..59c39ebe9 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -58,18 +58,15 @@ module Homebrew extend self
print "#{keg} (#{keg.abv})"
print " *" if f.installed_prefix == keg and kegs.length > 1
puts
+ tab = Tab.for_keg keg
+ unless tab.used_options.empty?
+ puts " Installed with: #{tab.used_options*', '}"
+ end
end
else
puts "Not installed"
end
- if f.installed?
- tab = Tab.for_formula f
- unless tab.used_options.empty?
- puts "Installed with: #{tab.used_options*', '}"
- end
- end
-
the_caveats = (f.caveats || "").strip
unless the_caveats.empty?
puts