diff options
| author | Mike McQuaid | 2016-10-01 15:11:52 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-10-01 15:11:52 +0100 |
| commit | f17a55b2690777ba67700a09a8eea623bd9ba98a (patch) | |
| tree | e3496c9c1f4ed4855f601c9b145c085380a0361a /Library | |
| parent | cc59e624b05dbe227387c2f359deef6bfade3eb2 (diff) | |
| download | brew-f17a55b2690777ba67700a09a8eea623bd9ba98a.tar.bz2 | |
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.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/upgrade.rb | 8 |
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?) |
