aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2011-11-13 23:24:39 -0600
committerJack Nagel2011-11-13 23:27:53 -0600
commit9e5c0da85ba4d0b66acb73af0c335db94389d724 (patch)
tree61c5c46e436e6e994e4cb4e1820304f65ba7a135 /Library
parent7248afc490a62d0a13096d265544423f31324abc (diff)
downloadbrew-9e5c0da85ba4d0b66acb73af0c335db94389d724.tar.bz2
info: display used options for installed formulae
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/info.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index 9c950801a..72348fc5c 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -1,4 +1,5 @@
require 'formula'
+require 'tab'
module Homebrew extend self
def info
@@ -62,6 +63,13 @@ module Homebrew extend self
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
+
if f.caveats
puts
puts f.caveats