From 7e2411eb4d339eec896bfdfed56b0b3cd7ced60e Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 30 Jul 2011 11:03:27 +0100 Subject: [PATCH] Remove "boring" args from the pretty_args only Dumb mistake. Sorry. Closes Homebrew/homebrew#6722 --- Library/Homebrew/formula.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 0d1380d794..5c330ee4fb 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -465,8 +465,10 @@ protected # Pretty titles the command and buffers stdout/stderr # Throws if there's an error def system cmd, *args - pretty_args = args - args.delete "--disable-dependency-tracking" if cmd == "./configure" + # remove "boring" arguments so that the important ones are more likely to + # be shown considering that we trim long ohai lines to the terminal width + pretty_args = args.dup + pretty_args.delete "--disable-dependency-tracking" if cmd == "./configure" and not ARGV.verbose? ohai "#{cmd} #{pretty_args*' '}".strip if ARGV.verbose?