summaryrefslogtreecommitdiff
path: root/OCRImage
diff options
context:
space:
mode:
authorArturs Artamonovs <arturs.artamonovs@protonmail.com>2021-03-04 18:53:22 +0000
committerArturs Artamonovs <arturs.artamonovs@protonmail.com>2021-03-04 18:53:22 +0000
commit16ea3ed434852a3101e62515812393afb6397bc7 (patch)
treed12f297b1c266b2f6842b18f604f072ba38fced9 /OCRImage
parent782c8c074fc722329696e74eeb34209145ee841e (diff)
downloadOCRImage-16ea3ed434852a3101e62515812393afb6397bc7.tar.gz
OCRImage-16ea3ed434852a3101e62515812393afb6397bc7.zip
Initial... adde parsing arguments
Diffstat (limited to 'OCRImage')
-rw-r--r--OCRImage/main.swift14
1 files changed, 13 insertions, 1 deletions
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")