Janus 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 Janus to your application as a dependency using the Swift Package Manager. The repository url is:
Alternatively, you can add the single public-domain
Janus.swift file directly to your application's source.
Janus 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.