upgrade --all: use odeprecated.

This commit is contained in:
Mike McQuaid 2018-01-20 12:04:28 +00:00
parent b96ec879dc
commit de0fedeb09

View File

@ -25,13 +25,7 @@ module Homebrew
Homebrew.perform_preinstall_checks
if ARGV.include?("--all")
opoo <<~EOS
We decided to not change the behaviour of `brew upgrade` so
`brew upgrade --all` is equivalent to `brew upgrade` without any other
arguments (so the `--all` is a no-op and can be removed).
EOS
end
odeprecated "'brew upgrade --all'", "'brew upgrade'" if ARGV.include?("--all")
if ARGV.named.empty?
outdated = Formula.installed.select do |f|