From f4af8337149659eeabb5a85017b80a5c52c602fc Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 4 Jun 2015 11:24:32 +0100 Subject: Revert "upgrade: announce usage of --all." This reverts commit 9032f165bec3d0c7452169093fab32578816043b. This seems to have been universally unpopular so let's revert it. Closes Homebrew/homebrew#40372. Signed-off-by: Mike McQuaid --- Library/Homebrew/cmd/upgrade.rb | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb index 12833c15a..3c90c0c95 100644 --- a/Library/Homebrew/cmd/upgrade.rb +++ b/Library/Homebrew/cmd/upgrade.rb @@ -5,14 +5,7 @@ module Homebrew def upgrade Homebrew.perform_preinstall_checks - if ARGV.include?("--all") || ARGV.named.empty? - unless ARGV.include? "--all" - opoo <<-EOS.undent - brew upgrade with no arguments will change behaviour soon! - It currently upgrades all formula but this will soon change to require '--all'. - Please update any workflows, documentation and scripts! - EOS - end + if ARGV.named.empty? outdated = Homebrew.outdated_brews(Formula.installed) exit 0 if outdated.empty? elsif ARGV.named.any? @@ -27,11 +20,6 @@ module Homebrew end end exit 1 if outdated.empty? - else - # This will currently never be reached but is implemented to make the - # migration to --all easier in the future (as just the ARGV.named.empty? - # will need removed above). - odie "Either --all or one or more formulae must be specified!" end unless upgrade_pinned? -- cgit v1.2.3