From 16ea3ed434852a3101e62515812393afb6397bc7 Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Thu, 4 Mar 2021 18:53:22 +0000 Subject: Initial... adde parsing arguments --- OCRImage/main.swift | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'OCRImage') diff --git a/OCRImage/main.swift b/OCRImage/main.swift index d00d3e9..3941dee 100644 --- a/OCRImage/main.swift +++ b/OCRImage/main.swift @@ -6,6 +6,18 @@ // import Foundation +import ArgumentParser -print("Hello, World!") +print("Start program") +struct OCROptions : ParsableArguments { + @Flag(name: .shortAndLong, help:"Show extra debugion info") + var debug=false + + @Flag(name:.shortAndLong, help:"Show current version") + var version=false +} + +let options = OCROptions.parseOrExit() + +print("End programm") -- cgit v1.2.3