Always print version information when starting up

This commit is contained in:
Bernerd Schaefer 2013-04-25 13:14:50 +02:00
parent 45243ac2da
commit c152aa514f
1 changed files with 2 additions and 1 deletions

View File

@ -47,8 +47,9 @@ var (
func main() {
flag.Parse()
versionInfoTmpl.Execute(os.Stdout, BuildInfo)
if *printVersion {
versionInfoTmpl.Execute(os.Stdout, BuildInfo)
os.Exit(0)
}