cli_parser: output help failure text to stderr.
This commit is contained in:
parent
9c7fe3dcb9
commit
0a0e2fa0c1
@ -126,7 +126,7 @@ module Homebrew
|
|||||||
begin
|
begin
|
||||||
remaining_args = @parser.parse(cmdline_args)
|
remaining_args = @parser.parse(cmdline_args)
|
||||||
rescue OptionParser::InvalidOption => e
|
rescue OptionParser::InvalidOption => e
|
||||||
puts generate_help_text
|
$stderr.puts generate_help_text
|
||||||
raise e
|
raise e
|
||||||
end
|
end
|
||||||
check_constraint_violations
|
check_constraint_violations
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user