From 4aacf5400e08860ebd6e579c38a08f02d386a65d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 17 Feb 2013 13:42:45 +0000 Subject: [PATCH] brew-update: show upgrade command on formula parameters. Closes Homebrew/homebrew#17814. --- Library/Homebrew/cmd/update.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb index 62f27e20a2..db8d8d79cb 100644 --- a/Library/Homebrew/cmd/update.rb +++ b/Library/Homebrew/cmd/update.rb @@ -6,7 +6,12 @@ module Homebrew extend self DEPRECATED_TAPS = ['adamv-alt'] def update - abort "This command updates brew itself, and does not take formula names." unless ARGV.named.empty? + unless ARGV.named.empty? + abort <<-EOS.undent + This command updates brew itself, and does not take formula names. + Use `brew upgrade `. + EOS + end abort "Please `brew install git' first." unless which "git" # ensure GIT_CONFIG is unset as we need to operate on .git/config