swift-argument-parser icon indicating copy to clipboard operation
swift-argument-parser copied to clipboard

Straightforward, type-safe argument parsing for Swift

Results 121 swift-argument-parser issues
Sort by recently updated
recently updated
newest added

### Description The [vscode-swift](https://github.com/swift-server/vscode-swift) extension recently added support for [creating a new swift project](https://github.com/swift-server/vscode-swift/pull/755). It does so using `swift package init` with some user input to initialize the project with....

enhancement

Currently it's possible to have two commands with the same _commandName by mixing a combination of the automatic command name generation based on the type name, and explicit use of...

Apple introduced Privacy Manifest, in which we need to declare the privacy APIs and data collected.
Resources:
https://developer.apple.com/videos/play/wwdc2023/10060/
https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api
https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_data_use_in_privacy_manifests All products we are building are required to adopt this...

The command name of a (`Async`)`ParsableCommand` is [inferred from the name of the struct](https://apple.github.io/swift-argument-parser/documentation/argumentparser/commandconfiguration/commandname) by default. For the root command, this name is never actually part of a command; it's...

These packages are not marked `REQUIRED` and when this project is used as a dependency of another CMake project they don't need to be findable when this CMakeLists.txt is read....

help wanted

Currently to share arguments across commands you can create a `ParsableArguments` type which contains your arguments/options, and can use `func validate() throws` to validate the arguments. This fails for things...

wontfix

Hi, This is my first issue in this repository. Thank you for creating and maintaining this great package! Now onto the problem: I discovered a bug with shell completions. Please...

help wanted

Why this matters: I want to submit PRs that make this project more consumable as a dependency of other CMake projects. Without a baseline understanding of what is expected to...

enhancement

When accidentally defining `main` instead of `run` in subcommands, no warning or error is shown, but the subcommand itself either displays a help message or swallows all arguments with no...

as expected

Consider the following ```swift import ArgumentParser @main struct asfdsdafjlk: AsyncParsableCommand { static let configuration = CommandConfiguration(subcommands: [MySubcommand.self]) @Option(name: [.customLong("configuration"), .customShort("c")]) var buildConfiguration: String = "x" mutating func run() throws {}...