diff options
author | dianshi <dianshi@main.lv> | 2021-03-25 07:33:06 +0000 |
---|---|---|
committer | dianshi <dianshi@main.lv> | 2021-03-25 07:33:06 +0000 |
commit | 937d19d5b65867ede7191e3b5e41fd4d04565c48 (patch) | |
tree | af6d95f58676bab63b1d861d6ca07dfca9506db4 /OCRImage | |
parent | 61ef2e60908d2b9b6b87c85a9beda781c5f25a33 (diff) | |
download | OCRImage-937d19d5b65867ede7191e3b5e41fd4d04565c48.tar.gz OCRImage-937d19d5b65867ede7191e3b5e41fd4d04565c48.zip |
Updated version command line behaviour and new version sttring added
Diffstat (limited to 'OCRImage')
-rw-r--r-- | OCRImage/main.swift | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OCRImage/main.swift b/OCRImage/main.swift index 3e5d08a..79d5b4b 100644 --- a/OCRImage/main.swift +++ b/OCRImage/main.swift @@ -112,10 +112,14 @@ struct OCROptions : ParsableArguments { let options = OCROptions.parseOrExit() +//Print version version and quit if options.version { - print("Version: 0.0.1") + print("Version: 0.0.2") + exit(0) } + + print("OCR Input file: \(options.inputFile)") //Try to open file from URL |