FlagInversion
The options for converting a Boolean flag into a true
/false
pair.
struct FlagInversion
The options for converting a Boolean flag into a true
/false
pair.
struct FlagInversion
import ArgumentParser
Straightforward, type-safe argument parsing for Swift.
init(name: NameSpecification = .long, inversion: FlagInversion, exclusivity: FlagExclusivity = .chooseLast, help: ArgumentHelp? = nil)
Creates a Boolean property with no default value that reads its value from the presence of one or more inverted flags.
init(name: NameSpecification = .long, inversion: FlagInversion, exclusivity: FlagExclusivity = .chooseLast, help: ArgumentHelp? = nil)
Creates a Boolean property that reads its value from the presence of one or more inverted flags.
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 prefixedEnableDisable: FlagInversion { get }
Uses matching flags with enable-
and disable-
prefixes.
static var prefixedNo: FlagInversion { get }
Adds a matching flag with a no-
prefix to represent false
.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.