From 937d19d5b65867ede7191e3b5e41fd4d04565c48 Mon Sep 17 00:00:00 2001 From: dianshi Date: Thu, 25 Mar 2021 07:33:06 +0000 Subject: Updated version command line behaviour and new version sttring added --- OCRImage/main.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OCRImage') 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 -- cgit v1.2.3