From 0a0e2fa0c15b0110b1f765be906ddc6faa5a2067 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 12 Jan 2019 19:16:44 +0000 Subject: [PATCH] cli_parser: output help failure text to stderr. --- Library/Homebrew/cli_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cli_parser.rb b/Library/Homebrew/cli_parser.rb index e487e8580a..01310d42e3 100644 --- a/Library/Homebrew/cli_parser.rb +++ b/Library/Homebrew/cli_parser.rb @@ -126,7 +126,7 @@ module Homebrew begin remaining_args = @parser.parse(cmdline_args) rescue OptionParser::InvalidOption => e - puts generate_help_text + $stderr.puts generate_help_text raise e end check_constraint_violations