info: display used options for installed formulae
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
7248afc490
commit
9e5c0da85b
@ -1,4 +1,5 @@
|
|||||||
require 'formula'
|
require 'formula'
|
||||||
|
require 'tab'
|
||||||
|
|
||||||
module Homebrew extend self
|
module Homebrew extend self
|
||||||
def info
|
def info
|
||||||
@ -62,6 +63,13 @@ module Homebrew extend self
|
|||||||
puts "Not installed"
|
puts "Not installed"
|
||||||
end
|
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
|
if f.caveats
|
||||||
puts
|
puts
|
||||||
puts f.caveats
|
puts f.caveats
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user