Skip to content
Snippets Groups Projects
Commit 115940db authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

Tweak the bin/brew command selector a bit.

* Move 'brew doctor' above both unknown command blocks and then...
* Merge unknown command blocks.

(This is cleanup for supporting external brew commands.)
parent f08431b5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment