Skip to content
Snippets Groups Projects
Commit 4aacf540 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

brew-update: show upgrade command on formula parameters.

Closes Homebrew/homebrew#17814.
parent 0c27a876
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment