Closed doozMen closed 1 year ago
The argument-parser is a pretty heavy dependency, plus it's specific for CLIs, probably you should just create another package like files-cli
or smth (btw currently kebab-case is kinda more prefered for Swift packages 😎)
The argument-parser is a pretty heavy dependency, plus it's specific for CLIs, probably you should just create another package like
files-cli
or smth (btw currently kebab-case is kinda more prefered for Swift packages 😎)
Thanks for the consideration. I think indeed that ArgumentParser dependency is a bit much
To make it possible to use files in conjunction with Apples
swift-argument-parser
it would be handy ifFile
andFolder
confirm toExpressibleByArgument
. This way Files and Folder can be passed as options.It is possible to extent Files to have this ability. The problem I faced was when I tried to make it conform to an Optional as well.
If you would consider this PR I can provide more info?
Background on the optional
Basically I want the following code to compile
The above does not compile as I cannot extend Optional twice, one time for
Folder
and another forFile
So maybe adding a dependency on
swift-argument-parser
might be an issue. But It is handy for commandline tools.