From aadd42a292ef6121b2337e5d168e9a98f0ccdf88 Mon Sep 17 00:00:00 2001 From: Asra Ali Date: Thu, 22 Sep 2022 10:34:45 -0400 Subject: [PATCH] fix: fix logging of help message Signed-off-by: Asra Ali --- cmd/tuf-client/main.go | 2 +- cmd/tuf/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tuf-client/main.go b/cmd/tuf-client/main.go index 25a32005..df3632b2 100644 --- a/cmd/tuf-client/main.go +++ b/cmd/tuf-client/main.go @@ -33,7 +33,7 @@ See "tuf-client help " for more information on a specific command. if cmd == "help" { if len(cmdArgs) == 0 { // `tuf-client help` - fmt.Fprint(os.Stderr, usage) + fmt.Fprint(os.Stdout, usage) return } else { // `tuf-client help ` cmd = cmdArgs[0] diff --git a/cmd/tuf/main.go b/cmd/tuf/main.go index 6ee220b2..dc6a256c 100644 --- a/cmd/tuf/main.go +++ b/cmd/tuf/main.go @@ -58,7 +58,7 @@ See "tuf help " for more information on a specific command if cmd == "help" { if len(cmdArgs) == 0 { // `tuf help` - fmt.Fprint(os.Stderr, usage) + fmt.Fprint(os.Stdout, usage) return } else { // `tuf help ` cmd = cmdArgs[0]