From d2bf7b4e2c18bb4a1486ca1af174daf32d89154d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 1 Jan 2012 15:26:45 -0600 Subject: [PATCH] info: display used options for all installed kegs Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/info.rb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 5872f88345..59c39ebe9f 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