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.)
This commit is contained in:
parent
f08431b5a1
commit
115940dbeb
7
bin/brew
7
bin/brew
@ -372,16 +372,17 @@ begin
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
when 'branch', 'checkout', 'pull', 'push', 'rebase', 'reset'
|
|
||||||
onoe "Unknown command: #{arg} (did you mean 'git #{arg}'?)"
|
|
||||||
|
|
||||||
when 'doctor'
|
when 'doctor'
|
||||||
require 'brew_doctor'
|
require 'brew_doctor'
|
||||||
brew_doctor
|
brew_doctor
|
||||||
|
|
||||||
|
else
|
||||||
|
if ['branch', 'checkout', 'pull', 'push', 'rebase', 'reset'].include? arg
|
||||||
|
onoe "Unknown command: #{arg} (did you mean 'git #{arg}'?)"
|
||||||
else
|
else
|
||||||
onoe "Unknown command: #{arg}"
|
onoe "Unknown command: #{arg}"
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
rescue FormulaUnspecifiedError
|
rescue FormulaUnspecifiedError
|
||||||
abort "This command requires a formula argument"
|
abort "This command requires a formula argument"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user