瀏覽代碼

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()
 	}