aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2013-09-01 13:54:33 +0100
committerMike McQuaid2013-09-01 13:57:40 +0100
commitf1e4f3ab99bc7cd1041417dcbd42d2de9df3522d (patch)
treef6071b4a3519663b8fe38a6bf4246539f2efdee9 /Library/Homebrew
parent1fd941d99ebabb08634222fabac3987f1e1a38bd (diff)
downloadhomebrew-f1e4f3ab99bc7cd1041417dcbd42d2de9df3522d.tar.bz2
brew-reinstall: don't list --force in args.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/reinstall.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb
index 419620fa1..485cf4c30 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