Better error for unknown brew commands

This commit is contained in:
Max Howell 2009-10-26 18:22:22 +00:00
parent 3d89578b5c
commit e587c68a2a

View File

@ -23,7 +23,7 @@ case ARGV.first
when '--cache'
puts HOMEBREW_CACHE
exit 0
when '-h', '--help', '--usage', '-?'
when '-h', '--help', '--usage', '-?', nil
puts ARGV.usage
exit 0
when '--version'
@ -221,7 +221,7 @@ begin
exec "git", "log", ARGV.formulae.first.path, *ARGV.options
else
puts ARGV.usage
onoe "Unknown command: #{arg}"
end
rescue FormulaUnspecifiedError