diff options
author | Arturs Artamonovs <arturs.artamonovs@protonmail.com> | 2021-03-04 18:53:22 +0000 |
---|---|---|
committer | Arturs Artamonovs <arturs.artamonovs@protonmail.com> | 2021-03-04 18:53:22 +0000 |
commit | 16ea3ed434852a3101e62515812393afb6397bc7 (patch) | |
tree | d12f297b1c266b2f6842b18f604f072ba38fced9 /OCRImage/main.swift | |
parent | 782c8c074fc722329696e74eeb34209145ee841e (diff) | |
download | OCRImage-16ea3ed434852a3101e62515812393afb6397bc7.tar.gz OCRImage-16ea3ed434852a3101e62515812393afb6397bc7.zip |
Initial... adde parsing arguments
Diffstat (limited to 'OCRImage/main.swift')
-rw-r--r-- | OCRImage/main.swift | 14 |
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") |