Merge pull request #1202 from MikeMcQuaid/warn-brew-upgrade-all

upgrade: tell people that --all is a no-op.
This commit is contained in:
Mike McQuaid 2016-10-01 18:23:31 +01:00 committed by GitHub
commit 32e992ae2f

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?)