diff --git a/main.go b/main.go index baa3075a2..95ab3ef54 100644 --- a/main.go +++ b/main.go @@ -47,8 +47,9 @@ var ( func main() { flag.Parse() + versionInfoTmpl.Execute(os.Stdout, BuildInfo) + if *printVersion { - versionInfoTmpl.Execute(os.Stdout, BuildInfo) os.Exit(0) }