Announcing ArgumentParser

I'm happy to announce the launch of a new command line argument parsing library — ArgumentParser — for the Swift ecosystem. Details are on the Swift.org blog:

From the byline of the project:

Straightforward, type-safe argument parsing for Swift

The blog post is authored by @nnnnnnnn. Please feel free to use this thread to ask questions related to the announcement!

72 Likes

This is really great! Thanks for making this.

This looks really nice! How does the parser know what the arguments of a command are? Is it using runtime metadata similar to SwiftUI or is there some other method?

It uses Mirror.

Terms of Service

Privacy Policy

Cookie Policy