aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-10-01 18:23:31 +0100
committerGitHub2016-10-01 18:23:31 +0100
commit32e992ae2fc0d7a44a227cbe27d514d28a4bb6ba (patch)
tree064a291af796a4a85a6770e6618a796d3978f150 /Library/Homebrew
parent009fe4fafa89e977588e79d34fd7a01e5b34769b (diff)
parentf17a55b2690777ba67700a09a8eea623bd9ba98a (diff)
downloadbrew-32e992ae2fc0d7a44a227cbe27d514d28a4bb6ba.tar.bz2
Merge pull request #1202 from MikeMcQuaid/warn-brew-upgrade-all
upgrade: tell people that --all is a no-op.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/upgrade.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb
index 5e534078d..f2c3799ab 100644
--- a/Library/Homebrew/cmd/upgrade.rb
+++ b/Library/Homebrew/cmd/upgrade.rb
@@ -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?)