brew.sh: speed up brew --help, brew -h, etc.

We can handle `brew --help` the same way as we do for `brew help`.
This commit is contained in:
Ruoyu Zhong 2024-07-14 13:41:51 -04:00
parent 5e8665c00c
commit 319aaefad1
No known key found for this signature in database

View File

@ -166,7 +166,7 @@ case "$@" in
homebrew-list "$@" && exit 0
;;
# falls back to cmd/help.rb on a non-zero return
help | "")
help | --help | -h | --usage | -? | "")
homebrew-help "$@" && exit 0
;;
esac