diff options
| author | Jack Nagel | 2011-11-13 23:24:39 -0600 |
|---|---|---|
| committer | Jack Nagel | 2011-11-13 23:27:53 -0600 |
| commit | 4afc05483c3d250dd6d14a3fa3347a74a11fe1db (patch) | |
| tree | 8c3965cd7e5feda5d1feb786b6716b6cfe5d5f8a /Library | |
| parent | 30745b90e8d04bf5115469ad183307ba64ea77a4 (diff) | |
| download | homebrew-4afc05483c3d250dd6d14a3fa3347a74a11fe1db.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.rb | 8 |
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 |
