brew by itself prints help but exits with non-zero
This commit is contained in:
parent
69361de450
commit
6d628d7a74
8
bin/brew
8
bin/brew
@ -8,10 +8,10 @@ HOMEBREW_LIBRARY_PATH = Pathname.new(__FILE__).realpath.dirname.parent.join("Lib
|
|||||||
$:.unshift(HOMEBREW_LIBRARY_PATH)
|
$:.unshift(HOMEBREW_LIBRARY_PATH)
|
||||||
require 'global'
|
require 'global'
|
||||||
|
|
||||||
case ARGV.first
|
case ARGV.first when '-h', '--help', '--usage', '-?', 'help', nil
|
||||||
when '-h', '--help', '--usage', '-?', 'help', nil
|
require 'cmd/help'
|
||||||
puts ARGV.usage
|
puts Homebrew.help_s
|
||||||
exit 0
|
exit ARGV.first ? 0 : 1
|
||||||
when '--version'
|
when '--version'
|
||||||
puts HOMEBREW_VERSION
|
puts HOMEBREW_VERSION
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user