Skip to content
Snippets Groups Projects
Commit e587c68a authored by Max Howell's avatar Max Howell
Browse files

Better error for unknown brew commands

parent 3d89578b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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