Add extra message for unknown commands that are git commands.

This commit is contained in:
Adam Vandenberg 2009-11-16 09:46:14 -08:00
parent be412369ae
commit 59a686e3c2

View File

@ -227,6 +227,9 @@ begin
Dir.chdir HOMEBREW_REPOSITORY
exec "git", "log", ARGV.formulae.first.path, *ARGV.options
when 'pull', 'push', 'checkout', 'branch'
onoe "Unknown command: #{arg} (did you mean 'git #{arg}'?)"
else
onoe "Unknown command: #{arg}"
end