Better error for unknown brew commands
This commit is contained in:
parent
3d89578b5c
commit
e587c68a2a
4
bin/brew
4
bin/brew
@ -23,7 +23,7 @@ case ARGV.first
|
|||||||
when '--cache'
|
when '--cache'
|
||||||
puts HOMEBREW_CACHE
|
puts HOMEBREW_CACHE
|
||||||
exit 0
|
exit 0
|
||||||
when '-h', '--help', '--usage', '-?'
|
when '-h', '--help', '--usage', '-?', nil
|
||||||
puts ARGV.usage
|
puts ARGV.usage
|
||||||
exit 0
|
exit 0
|
||||||
when '--version'
|
when '--version'
|
||||||
@ -221,7 +221,7 @@ begin
|
|||||||
exec "git", "log", ARGV.formulae.first.path, *ARGV.options
|
exec "git", "log", ARGV.formulae.first.path, *ARGV.options
|
||||||
|
|
||||||
else
|
else
|
||||||
puts ARGV.usage
|
onoe "Unknown command: #{arg}"
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue FormulaUnspecifiedError
|
rescue FormulaUnspecifiedError
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user