aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-10-26 18:22:22 +0000
committerMax Howell2009-11-07 18:22:33 +0000
commit178d31bed95c882e52bf7a0ef1407fcac895ad8f (patch)
tree14233b7ce46d1bb556d356b771554cea2ef31128
parenta772101b2d1ea66c6b7631bfd3fb074f9d52373b (diff)
downloadhomebrew-178d31bed95c882e52bf7a0ef1407fcac895ad8f.tar.bz2
Better error for unknown brew commands
-rwxr-xr-xbin/brew4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/brew b/bin/brew
index 549033280..92e1065be 100755
--- a/bin/brew
+++ b/bin/brew
@@ -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