aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/utils.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index f78fbfcb7..71f03c6d5 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -88,8 +88,10 @@ def ohai(title, *sput)
puts sput
end
-def oh1(title)
- title = Tty.truncate(title) if $stdout.tty? && !ARGV.verbose?
+def oh1(title, options = {})
+ if $stdout.tty? && !ARGV.verbose? && options.fetch(:truncate, :auto) == :auto
+ title = Tty.truncate(title)
+ end
puts "#{Tty.green}==>#{Tty.white} #{title}#{Tty.reset}"
end