From a913d34d9186dd4574a3fed3283bc8d1c0331433 Mon Sep 17 00:00:00 2001 From: Bryce Mecum Date: Tue, 31 Mar 2026 08:14:48 -0700 Subject: [PATCH] stderr --- cmd/dbc/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/dbc/main.go b/cmd/dbc/main.go index 55d072e..1ee442b 100644 --- a/cmd/dbc/main.go +++ b/cmd/dbc/main.go @@ -190,8 +190,8 @@ func failSubcommandAndSuggest(p *arg.Parser, msg string, subcommand ...string) { } } - p.WriteUsageForSubcommand(os.Stdout, subcommand...) - fmt.Fprintf(os.Stdout, "error: %s", msg) + p.WriteUsageForSubcommand(os.Stderr, subcommand...) + fmt.Fprintf(os.Stderr, "error: %s", msg) // Optionally add suggestion if invalidCmd != "" {