Skip to content

Commit

Permalink
fix(cmd): fix logging of help message (#395)
Browse files Browse the repository at this point in the history
fix: fix logging of help message

Signed-off-by: Asra Ali <asraa@google.com>

Signed-off-by: Asra Ali <asraa@google.com>
  • Loading branch information
asraa authored Sep 27, 2022
1 parent e56ccf6 commit f75cbcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/tuf-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ See "tuf-client help <command>" 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 <command>`
cmd = cmdArgs[0]
Expand Down
2 changes: 1 addition & 1 deletion cmd/tuf/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ See "tuf help <command>" 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 <command>`
cmd = cmdArgs[0]
Expand Down

0 comments on commit f75cbcc

Please sign in to comment.