uninstall: improve pronoun for multiple version message

When exactly two versions of a package were installed, the uninstall
message should not read "Remove them all with...", since only one
version remains.

"Remove all versions with..." is flexible enough to avoid being
interpreted as grammatically incorrect, and it still accurately
describes the general behavior of `brew uninstall --force`.
This commit is contained in:
Joseph Frazier 2016-09-21 09:18:36 -04:00
parent a381b597d3
commit 66ca9e79fc

View File

@ -25,7 +25,7 @@ module Homebrew
versions = rack.subdirs.map(&:basename) versions = rack.subdirs.map(&:basename)
verb = versions.length == 1 ? "is" : "are" verb = versions.length == 1 ? "is" : "are"
puts "#{keg.name} #{versions.join(", ")} #{verb} still installed." puts "#{keg.name} #{versions.join(", ")} #{verb} still installed."
puts "Remove them all with `brew uninstall --force #{keg.name}`." puts "Remove all versions with `brew uninstall --force #{keg.name}`."
end end
end end
end end