From c152aa514fdb8781bfbedfd00e6e38c2e0276ae2 Mon Sep 17 00:00:00 2001 From: Bernerd Schaefer Date: Thu, 25 Apr 2013 13:14:50 +0200 Subject: [PATCH] Always print version information when starting up --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) }