summaryrefslogtreecommitdiff
path: root/OCRImage
diff options
context:
space:
mode:
authordianshi <dianshi@main.lv>2021-03-25 07:33:06 +0000
committerdianshi <dianshi@main.lv>2021-03-25 07:33:06 +0000
commit937d19d5b65867ede7191e3b5e41fd4d04565c48 (patch)
treeaf6d95f58676bab63b1d861d6ca07dfca9506db4 /OCRImage
parent61ef2e60908d2b9b6b87c85a9beda781c5f25a33 (diff)
downloadOCRImage-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.swift6
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