Display "Use brew upgrade foo instead" when calling update with args

So the user could just copy-paste the command.
This commit is contained in:
Tim Marinin 2017-07-05 21:49:27 +03:00
parent ec91c3f8e2
commit 156e19c6dc

View File

@ -336,7 +336,7 @@ homebrew-update() {
*)
odie <<EOS
This command updates brew itself, and does not take formula names.
Use 'brew upgrade <formula>'.
Use 'brew upgrade $@' instead.
EOS
;;
esac