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

Just as SAP creates and populates help from its property wrappers, I believe it would be useful to have a way to document exit codes produced by the command line...

enhancement

This feature request builds on the notion of a full help user-driven option. Under such a feature, this request would allow the developer to specify how the abstract and discussion...

Sometimes arguments are best handled in USAGE without needing their own section as in the following screen-shot. I would like to be able to hide the ARGUMENTS section for the...

I'd like to be able to optionally control the USAGE for `.remaining` parsing to provide appropriate plurality. The screenshot below suggests that the user enters multiple location hints. They do...

enhancement

Some tools/situations end up needing so many arguments that they can run in to the max command line length. This is usually handled via _argument files_ or _parameter files_ --...

enhancement
help wanted

Like [the blog post](https://swift.org/blog/argument-parser/) mentions: > Because `highValue` is defined as an `Int`, only valid inputs are recognized, with no manual parsing or casting necessary on your part: ``` >...

enhancement

As pointed out in #120, there isn't any documentation describing how to manually create instances of `ParsableArguments` or `ParsableCommand` types, and the error message when using one created from calling...

documentation

Properties wrapped by ``@Option`` with a ``.implicit`` name specification would be handled like those with ``@Argument`` and would allow command line tools like this one (inspired from sed). ```swift import...

enhancement

By default, `ArgumentParser` currently uses a `ArgumentHelp.valueName` derived from the option name. While this is a nice standard default, I think it often leads to overly verbose --help text, and...

enhancement
help wanted

The guide should cover pull request and testing expectations, coding style (re: [this note](https://github.com/apple/swift-argument-parser/pull/22#issuecomment-593087110)), and any platform-specific requirements.

documentation