Swift Package Index


📄 A simple, lightweight Swift command line argument parser library.


  • The latest stable release is 0.1.2. Released 2 years ago.
  • The last commit to master was 2 years ago.

Swift Version Compatibility

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

Platform Compatibility

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

ArgumentParser

Build Status Codacy Badge

ArgumentParser is an elegant command line argument parser library.

Features

  • Register commands and options.
  • Register options with value. (--type=swift)
  • Unified help interface

Requirements

  • Swift Package Manager
  • Swift 4.1+

Installation

ArgumentParser can be used with the Swift Package Manager.

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/magyarosibotond/ArgumentParser", from: "0.1.0")
]

Usage

First, all commands and options need to be registered.

TBD

Parse command line arguments. The first item in the list can be dropped since it only contains the executable path.

TBD