diff options
| -rwxr-xr-x | bin/brew | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -372,15 +372,16 @@ begin end end - when 'branch', 'checkout', 'pull', 'push', 'rebase', 'reset' - onoe "Unknown command: #{arg} (did you mean 'git #{arg}'?)" - when 'doctor' require 'brew_doctor' brew_doctor else - onoe "Unknown command: #{arg}" + if ['branch', 'checkout', 'pull', 'push', 'rebase', 'reset'].include? arg + onoe "Unknown command: #{arg} (did you mean 'git #{arg}'?)" + else + onoe "Unknown command: #{arg}" + end end rescue FormulaUnspecifiedError |
