aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-02-17 13:42:45 +0000
committerMike McQuaid2013-02-18 10:40:48 +0000
commit4aacf5400e08860ebd6e579c38a08f02d386a65d (patch)
treee147b5e283a15525b3034cee9d109300e85a355a /Library
parent0c27a8765e2cb55f4e5e4c4d338126cfbc7886cb (diff)
downloadbrew-4aacf5400e08860ebd6e579c38a08f02d386a65d.tar.bz2
brew-update: show upgrade command on formula parameters.
Closes Homebrew/homebrew#17814.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index 62f27e20a..db8d8d79c 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 <formula>`.
+ EOS
+ end
abort "Please `brew install git' first." unless which "git"
# ensure GIT_CONFIG is unset as we need to operate on .git/config