diff options
| author | Max Howell | 2011-03-13 13:42:48 +0000 | 
|---|---|---|
| committer | Max Howell | 2011-03-13 13:42:48 +0000 | 
| commit | 6d628d7a7451edf1c6b447ae8cc8f1929a477a70 (patch) | |
| tree | fa104ad847d83dbc92d4327c613ad7d5d137690c /bin | |
| parent | 69361de450114b03d20069e5865a062f76610a1b (diff) | |
| download | brew-6d628d7a7451edf1c6b447ae8cc8f1929a477a70.tar.bz2 | |
`brew` by itself prints help but exits with non-zero
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 8 | 
1 files changed, 4 insertions, 4 deletions
@@ -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  | 
