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

When attempting to create an application with a AsyncParsableCommand root and AsyncParsableCommand subcommands, a fatal error is thrown at runtime “Asynchronous subcommand of a synchronous root.” **ArgumentParser version:** `1.2.0` **Swift...

good first issue

The usage generated by the built-in help flag has the name of the type of all `@OptionGroup` members prepended to the command stack if all options and arguments are optional...

bug
good first issue

Executable name in usage messages is synthesized from the `@main` struct name. That's incorrect by almost any measure: no executable by that name exists in most cases. IMO the right...

bug
help wanted

The `completion` parameter of `@Argument` property wrapper only allows specifying a single `CompletionKind` value which is not flexible enough. In some cases a command can take either a file or...

enhancement

At the moment the `custom` case of the `CompletionKind` enumeration supports being given a custom closure to generate completions on the command line. However, since the provided closure must be...

enhancement

Right now, if you supply an `async` rendition of `run()` in conjunction with `ParsableCommand`, it produces no warning or error, but whenever you run the app, you simply see the...

`@OptionGroup` behaves in an unexpected way with nested groups when `title:` argument value is specified. **ArgumentParser version:** 1.2.2 **Swift version:** swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) Target:...

bug

If I haven't overlooked something, it's currently not possible to define options in the style of make/gcc/clang definitions. In theory it should be possible to define it like this: ```swift...

enhancement

I have argument parser as a dependancy on a Library. After updating to xcode 14.1 `swift build` fails version 1.1.4 swift version 5.7 ### Checklist - [ ] If possible,...

Working on a tool with a handful of subcommands, I find myself wanting to handle common work in the root command, and then pass some state to the subcommand. I’m...