swift-argument-parser
swift-argument-parser copied to clipboard
Straightforward, type-safe argument parsing for Swift
Swift argument parser doesn't handle properties with the same name under different option groups gracefully. The following snippet throws an error when run with no arguments, but I would expect...
Commands with default subcommands do not have discoverable usage information without digging into the subcommand itself. Below, I'll outline the structure of a simple project as well as two proposals...
This test covers the cast that an invalid long argument is not mistaken for any other argument with a similar prefix.
When writing a cli, the interface might be interesting enough to warrant tests of the parsing. In order to do that I had previously copied the test helpers from the...
Since ArgumentParser is case-sensitive, it would be nice to allow commands to have alias names. For example, if I have a subcommand named "fetchResults", if the user types "fetchresults", I...
It's the solution for issue #307 The author closed the issue, but I still need this one. ### Checklist - [x] I've added at least one test that validates that...
## Problem Statement Given the following command: ```swift struct List: ParsableCommand { private enum Filter: String, ExpressibleByArgument { case all case devices case deviceTypes case runtimes case pairs } @Option(default:...
I'd like the ability for an input to be able to work as both a Flag and an Option in my CLI. For example, I would want both of the...
The [Python library Gooey](https://github.com/chriskiehl/Gooey) automagically converts commandline applications using argparse to GUI applications using wxPython. > At run-time, it parses your Python script for all references to ArgumentParser. (The older...
Is there anything preventing SAP from using 5.1 to enable Mojave compilation? ``` // swift-tools-version:5.2 ```