Skip to content

Commit

Permalink
fix: Set version output to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
taichimaeda committed Nov 24, 2023
1 parent 62ed91f commit 532e579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/wireplus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ func main() {

// Print the version and exit if version flag is set.
if version {
log.SetOutput(os.Stdout)
log.Println(Version)
os.Exit(0)
os.Exit(int(subcommands.ExitSuccess))
}

// TODO(rvangent): Use subcommands's VisitCommands instead of hardcoded map,
Expand Down

0 comments on commit 532e579

Please sign in to comment.