Swiftpack.co - Package - frazer-rbsn/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.


Using Swift Package Manager:

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


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


Stars: 4
Help us keep the lights on


Used By

Total: 0


3.0.4 - Nov 10, 2019

  • Updated to Linux-compatible package structure
  • Fixed crash when no arguments passed

3.0.3 - Sep 15, 2019

Test structure

3.0.2 - Sep 15, 2019

  • Added tests placeholder

3.0.1 - Sep 14, 2019

  • Manifest fix

3.0.0 - Sep 14, 2019

  • Extensible CommandName, ArgumentName and OptionName structs, used in the same way as Foundation's Notification.Name.
  • Parsed models use dictionaries with the related name struct as the key.