ParsableArguments

A type that can be parsed from a program’s command-line arguments.

ParsableArguments.swift:16ParsableArguments.md
protocol ParsableArguments : Decodable
Browse conforming types

When you implement a ParsableArguments type, all properties must be declared with one of the four property wrappers provided by the ArgumentParser library.

Handling Validation

Parsing a Type

Exiting a Program

Generating Help Text

Handling Errors

Generating Completion Scripts

Infrequently Used APIs

  • init()

    Creates an instance of this parsable type using the definitions given by each property’s wrapper.