Skip to content

Commit c99f1d5

Browse files
coincashewjtraglia
andauthored
Fix versionFlag to output to stdout (#710)
* Fix versionFlag to output to stdout * Write version with fmt.Fprintf(cmd.Writer, ...) --------- Co-authored-by: Justin Traglia <[email protected]> Co-authored-by: Justin Traglia <[email protected]>
1 parent a32a1bf commit c99f1d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func Main() {
5555
func start(_ context.Context, cmd *cli.Command) error {
5656
// Only print the version if the flag is set
5757
if cmd.IsSet(versionFlag.Name) {
58-
log.Infof("mev-boost %s\n", config.Version)
58+
fmt.Fprintf(cmd.Writer, "mev-boost %s\n", config.Version)
5959
return nil
6060
}
6161

0 commit comments

Comments
 (0)