aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2011-03-13 13:42:48 +0000
committerMax Howell2011-03-13 13:42:48 +0000
commit7fafb5035ebf6d215bc3ac3fc4836c0bd5ff7277 (patch)
treed5a2ce55b91c23e9d27a143323fdc4519dc7304a /bin
parent53f83ccec7de51665e080556c88ca91a9e35fa3e (diff)
downloadhomebrew-7fafb5035ebf6d215bc3ac3fc4836c0bd5ff7277.tar.bz2
`brew` by itself prints help but exits with non-zero
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/brew b/bin/brew
index 3569560ae..c06a673dc 100755
--- a/bin/brew
+++ b/bin/brew
@@ -8,10 +8,10 @@ HOMEBREW_LIBRARY_PATH = Pathname.new(__FILE__).realpath.dirname.parent.join("Lib
$:.unshift(HOMEBREW_LIBRARY_PATH)
require 'global'
-case ARGV.first
-when '-h', '--help', '--usage', '-?', 'help', nil
- puts ARGV.usage
- exit 0
+case ARGV.first when '-h', '--help', '--usage', '-?', 'help', nil
+ require 'cmd/help'
+ puts Homebrew.help_s
+ exit ARGV.first ? 0 : 1
when '--version'
puts HOMEBREW_VERSION
exit 0