Element
An individual property name translation.
struct Element
An individual property name translation.
struct Element
import ArgumentParser
Straightforward, type-safe argument parsing for Swift.
struct NameSpecification
A specification for how to represent a property as a command-line argument label.
init<S>(_ sequence: S) where S : Sequence, S.Element == NameSpecification.Element
init(arrayLiteral elements: Element...)
static var long: NameSpecification { get }
Use the property’s name converted to lowercase with words separated by hyphens.
static var short: NameSpecification { get }
Use the first character of the property’s name as a short option label.
static var shortAndLong: NameSpecification { get }
Combine the .short
and .long
specifications to allow both long and short labels.
static func customLong(_ name: String, withSingleDash: Bool = false) -> NameSpecification
Use the given string instead of the property’s name.
static func customShort(_ char: Character, allowingJoined: Bool = false) -> NameSpecification
Use the given character as a short option label.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
static var long: Element { get }
Use the property’s name, converted to lowercase with words separated by hyphens.
static var short: Element { get }
Use the first character of the property’s name as a short option label.
static func customLong(_ name: String, withSingleDash: Bool = false) -> Element
Use the given string instead of the property’s name.
static func customShort(_ char: Character, allowingJoined: Bool = false) -> Element
Use the given character as a short option label.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.