diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index 66be9ac6b4..efb3796146 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -352,7 +352,11 @@ homebrew-update() { HOMEBREW_SIMULATE_FROM_CURRENT_BRANCH=1 ;; --auto-update) export HOMEBREW_UPDATE_AUTO=1 ;; - --*) ;; + --*) + onoe "Unknown option: ${option}" + brew help update + exit 1 + ;; -*) [[ "${option}" == *v* ]] && HOMEBREW_VERBOSE=1 [[ "${option}" == *q* ]] && HOMEBREW_QUIET=1