upgrade: tell people that --all is a no-op.

Apparently this is still run by people so let's tell them to save
some typing.
This commit is contained in:
Mike McQuaid 2016-10-01 15:11:52 +01:00
parent cc59e624b0
commit f17a55b269

View File

@ -23,6 +23,14 @@ module Homebrew
Homebrew.perform_preinstall_checks
if ARGV.include?("--all")
opoo <<-EOS.undent
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
if ARGV.named.empty?
outdated = Formula.installed.select do |f|
f.outdated?(fetch_head: ARGV.fetch_head?)