All Versions
10
Latest Version
Avg Release Cycle
98 days
Latest Release
1061 days ago

Changelog History

  • v3.0.4 Changes

    November 10, 2019
    • โšก๏ธ Updated to Linux-compatible package structure
    • ๐Ÿ›  Fixed crash when no arguments passed
  • v3.0.3 Changes

    September 15, 2019

    โœ… Test structure

  • v3.0.2 Changes

    September 15, 2019
    • โž• Added tests placeholder
  • v3.0.1 Changes

    September 14, 2019
    • Manifest fix
  • v3.0.0 Changes

    September 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.
  • v2.0.2 Changes

    September 08, 2019
    • ๐Ÿ“œ Parser fix
  • v2.0.1 Changes

    September 08, 2019
    • ๐Ÿ“ฆ Package manifest fix
  • v2.0.0 Changes

    September 08, 2019
    • ๐Ÿ“œ Re-write of whole project. Simplified parser. Commands are now built using a CommandBuilder.
  • v1.1.0 Changes

    September 07, 2019
    • โšก๏ธ Update to Swift 5
  • v1.0.0 Changes

    June 09, 2017

    ๐Ÿ“œ CommandParser.parseCommandLine(_:) no longer throws. Instead, you can handle parsing errors in a new CommandParserDelegate function, parserError(_:). This makes it easy to run parsing in a background thread and for better separation of concerns.

    class Delegate : CommandParserDelegate { /\*\* Called if there was a problem.\*/func parserError(error : CommandParserError) { //Handle error } /\*\* Called if there were no command-line arguments supplied to your program.\*/func commandNotSupplied() { //Handle commands not supplied } /\*\* Called if a command was parsed successfully.\*/func receivedCommand(command : Command) { //Handle successfully-parsed commands } }let delegate = Delegate()let commandParser = CommandParser() commandParser.parseCommandLine(delegate: delegate)