소스 검색

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