brew-reinstall: don't list --force in args.

This commit is contained in:
Mike McQuaid 2013-09-01 13:54:33 +01:00
parent 22da8eb633
commit 0c5d928cad

View File

@ -23,7 +23,10 @@ module Homebrew extend self
end end
# Todo: Be as smart as upgrade to restore the old state if reinstall fails. # Todo: Be as smart as upgrade to restore the old state if reinstall fails.
self.uninstall 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 self.install
end end
end end