Static Propertyswift-argument-parser 1.6.1ArgumentParser
exclusive
Only one of the enumeration cases may be provided.
static var exclusive: FlagExclusivity { get }
Only one of the enumeration cases may be provided.
static var exclusive: FlagExclusivity { get }
import ArgumentParser
Straightforward, type-safe argument parsing for Swift.
struct FlagExclusivity
The options for treating enumeration-based flags as exclusive.
static var chooseFirst: FlagExclusivity { get }
The first enumeration case that is provided is used.
static var chooseLast: FlagExclusivity { get }
The last enumeration case that is provided is used.