swift-argument-parser
swift-argument-parser copied to clipboard
Straightforward, type-safe argument parsing for Swift
I was looking over some issues, and for fun cloned https://gitlab.com/frizlab-demo-projects/swift-argument-parser-example-for-pr-320 which was a test case for a problem that affected bash and not zsh for issue #320. Was just...
I had a "verbose" flag for log output, but it was getting completely ignored and failed silently. **ArgumentParser version:** `1.0.2` **Swift version:** ``` swift-driver version: 1.26.9 Apple Swift version 5.5.1...
Currently the completion script is auto-generated from ArgumentParser and cannot be modified. In some (rare) projects this auto-generated completion script can be unadapted. We should be able to customize it...
The Argument Parser isn't able to parse an `Option` correctly in a very specific parameter setting (see example below). This may even result in wrongly parsed values. **ArgumentParser version:** `1.0.1`...
It would be super nice/helpful to parse an options value from an Environment variable value as well taking what is passed in the command line call as the priority over...
Current: hidden items are excluded from help. This is particularly useful for backend features that can be dangerous and extraneous features that clutter the help message but ultimately defeats the...
**⚠️ Not ready for merging yet!** ### Description This change introduces support for DOS-/Windows-style command line parsing. Historically, DOS and Windows have used a different set of rules for parsing...
Currently, it seems that at ParsableArgumentsValidation.swift:140, there is a `throw ValidationResult.success` that triggers on the regular happy path. This makes it very annoying to debug your code if you use...
Xcode made it pretty easy to add argument-parser dependencies, but it took me awhile to figure out that I had to also argument-parser to the 'Link Binary with Libraries' element...
This is an initial draft of subcommand auto discovery using reflection to find a list of protocol conformances to `ParsableCommand` and looking for nested types who conform to said protocol....