ArgumentArrayParsingStrategy
The strategy to use when parsing multiple values from positional arguments into an array.
struct ArgumentArrayParsingStrategy
Parsing Strategies
static var remaining: ArgumentArrayParsingStrategy
Parse only unprefixed values from the command-line input, ignoring any inputs that have a dash prefix. This is the default strategy.
static var allUnrecognized: ArgumentArrayParsingStrategy
After parsing, capture all unrecognized inputs in this argument array.
static var postTerminator: ArgumentArrayParsingStrategy
Before parsing arguments, capture all inputs that follow the
--
terminator in this argument array.static var captureForPassthrough: ArgumentArrayParsingStrategy
Parse all remaining inputs after parsing any known options or flags, including dash-prefixed inputs and the
--
terminator.