brew-update: show upgrade command on formula parameters.
Closes Homebrew/homebrew#17814.
This commit is contained in:
parent
0c27a8765e
commit
4aacf5400e
@ -6,7 +6,12 @@ module Homebrew extend self
|
|||||||
DEPRECATED_TAPS = ['adamv-alt']
|
DEPRECATED_TAPS = ['adamv-alt']
|
||||||
|
|
||||||
def update
|
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"
|
abort "Please `brew install git' first." unless which "git"
|
||||||
|
|
||||||
# ensure GIT_CONFIG is unset as we need to operate on .git/config
|
# ensure GIT_CONFIG is unset as we need to operate on .git/config
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user