Swift Package Index


A minimal, pure Swift library for making command-line tools / interfaces.


  • The latest stable release is 3.0.4. Released about 1 year ago.
  • The last commit to master was about 1 year ago.

Swift Version Compatibility

  • 3.0.4 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 3.0.4 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

SwiftArgs

A minimal, pure Swift library for making command-line tools / interfaces.

Travis build status codebeat SPM Swift version

SwiftArgs uses a very basic and limited parser for parsing commands, but it should suffice for basic usage requirements. You can use SwiftArgs when making a command-line interface in Swift and let it do the parsing work for you.

Contributions welcome.


Install

Using Swift Package Manager:

dependencies: [
  .Package(url: "https://github.com/frazer-rbsn/SwiftArgs", majorVersion: 1.1),
]

Limitations

  • Hasn't been tested on Linux.
  • Currently no support for subcommands
  • Doesn't support short-form option switches yet, e.g. mycommand -o