From 0c5d928cad2cbe719ffd3700b320f82d486ddef1 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 1 Sep 2013 13:54:33 +0100 Subject: [PATCH] brew-reinstall: don't list --force in args. --- Library/Homebrew/cmd/reinstall.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb index 419620fa14..485cf4c30f 100644 --- a/Library/Homebrew/cmd/reinstall.rb +++ b/Library/Homebrew/cmd/reinstall.rb @@ -23,7 +23,10 @@ module Homebrew extend self end # Todo: Be as smart as upgrade to restore the old state if reinstall fails. self.uninstall - oh1 "Reinstalling #{name} #{ARGV.options_only*' '}" + # Don't display --force in options; user didn't request it so a bit scary. + options_only = ARGV.options_only + options_only.delete "--force" + oh1 "Reinstalling #{name} #{options_only*' '}" self.install end end