ExpressibleByArgument
A type that can be expressed as a command-line argument.
protocol ExpressibleByArgument
Browse conforming typesA type that can be expressed as a command-line argument.
protocol ExpressibleByArgument
import ArgumentParser
Straightforward, type-safe argument parsing for Swift.
init?(argument: String)
Creates a new instance of this type from a command-line-specified argument.
static var allValueStrings: [String] { get }
An array of all possible strings that can convert to a value of this type, for display in the help screen.
static var defaultCompletionKind: CompletionKind { get }
The completion kind to use for options or arguments of this type that don’t explicitly declare a completion kind.
var defaultValueDescription: String { get }
The description of this instance to show as a default value in a command-line tool’s help screen.
protocol EnumerableFlag : CaseIterable, Equatable
A type that represents the different possible flags to be used by a @Flag
property.
static var allValueStrings: [String] { get }
static var defaultCompletionKind: CompletionKind { get }
var defaultValueDescription: String { get }
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
var defaultValueDescription: String { get }
protocol CaseIterable
A type that provides a collection of all of its values.
static var allValueStrings: [String] { get }
static var allValueStrings: [String] { get }
static var defaultCompletionKind: CompletionKind { get }