Skip to content

Commit ea2ae83

Browse files
author
WingLim
committed
feat: add version command
1 parent 2727efb commit ea2ae83

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

MicFix/main.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@
77

88
import Foundation
99

10+
let version = "1.1.2"
11+
1012
func start() {
11-
MicFix().start()
12-
RunLoop.current.run()
13+
let args = CommandLine.arguments
14+
if args.count == 2 && args[1] == "version" {
15+
print(version)
16+
} else {
17+
MicFix().start()
18+
RunLoop.current.run()
19+
}
1320
}
1421

1522
start()

0 commit comments

Comments
 (0)