ArgParse is an argument-parsing library designed for building elegant command-line interfaces.
Long-form boolean flags with single-character shortcuts:
Long-form string, integer, and floating-point options with single-character shortcuts:
Condensed short-form options:
-abc <arg> <arg>.
Support for multivalued options.
Support for git-style command interfaces with arbitrarily-nested commands.
You can add ArgParse to your application as a dependency using the Swift Package Manager. The repository url is:
Alternatively, you can add the single public-domain
ArgParse.swift file directly to your application's source.
ArgParse is a beta-stage project and breaking changes to its API are possible. Feedback is welcome.
This work has been placed in the public domain.