Skip to content

Commit

Permalink
feat: add version command
Browse files Browse the repository at this point in the history
  • Loading branch information
WingLim committed May 18, 2021
1 parent 2727efb commit ea2ae83
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions MicFix/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@

import Foundation

let version = "1.1.2"

func start() {
MicFix().start()
RunLoop.current.run()
let args = CommandLine.arguments
if args.count == 2 && args[1] == "version" {
print(version)
} else {
MicFix().start()
RunLoop.current.run()
}
}

start()

0 comments on commit ea2ae83

Please sign in to comment.