ソースを参照

version fixes

Tobias Begalke 7 年 前
コミット
c24cfbb5aa
1 ファイル変更5 行追加0 行削除
  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()
 	}