Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
info: display used options for installed formulae
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
jacknagel committed Nov 14, 2011
1 parent 30745b9 commit 4afc054
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Library/Homebrew/cmd/info.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'formula'
require 'tab'

module Homebrew extend self
def info
Expand Down Expand Up @@ -62,6 +63,13 @@ def info_formula f
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
Expand Down

0 comments on commit 4afc054

Please sign in to comment.