Static Propertyswift-argument-parser 1.6.1ArgumentParser
singleValue
Parse one value per option, joining multiple into an array.
static var singleValue: ArrayParsingStrategy { get }
For example, for a parsable type with a property defined as @Option(parsing: .singleValue) var read: [String]
, the input --read foo --read bar
would result in the array ["foo", "bar"]
. The same would be true for the input --read=foo --read=bar
.