aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-01-01 15:26:45 -0600
committerJack Nagel2012-01-03 19:50:19 -0600
commit5079980d0c0a5d7b7d72a4b71fc085824d94863f (patch)
tree4e3f834047891c5f7497383636d4821cc406e013 /Library
parent913b8c4d608fb6b84b71b09ffdcbb438d27c7484 (diff)
downloadhomebrew-5079980d0c0a5d7b7d72a4b71fc085824d94863f.tar.bz2
info: display used options for all installed kegs
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-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