aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/info.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index a5da4e81d..ffbc93038 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -1,6 +1,7 @@
require 'formula'
require 'tab'
require 'keg'
+require 'caveats'
module Homebrew extend self
def info
@@ -119,10 +120,7 @@ module Homebrew extend self
Homebrew.dump_options_for_formula f
end
- unless f.caveats.to_s.strip.empty?
- ohai "Caveats"
- puts f.caveats
- end
+ Caveats.print f
rescue FormulaUnavailableError
# check for DIY installation