Browse Source

version fixes

Tobias Begalke 7 years ago
parent
commit
c24cfbb5aa
1 changed files with 5 additions and 0 deletions
  1. 5 0
      main.go

+ 5 - 0
main.go

@@ -44,6 +44,11 @@ func init() {
 
 func main() {
 
+	if *doVersion {
+		version()
+		os.Exit(0)
+	}
+
 	if *doProfile {
 		defer profile.Start(profile.CPUProfile).Stop()
 	}