diff --git a/Library/Homebrew/brew.rb b/Library/Homebrew/brew.rb index 945c14dea1..4e26545326 100644 --- a/Library/Homebrew/brew.rb +++ b/Library/Homebrew/brew.rb @@ -121,6 +121,8 @@ begin possible_tap = Tap.fetch(possible_tap.first) if possible_tap if !possible_tap || possible_tap.installed? || Tap.untapped_official_taps.include?(possible_tap.name) + # Check for cask explicitly because it's very common in old guides + odie "`brew cask` is no longer a `brew` command. Use `brew --cask` instead." if cmd == "cask" odie "Unknown command: #{cmd}" end