Required Static Methodswift-argument-parser 1.6.1ArgumentParser
name(for:)
Returns the name specification to use for the given flag.
static func name(for value: Self) -> NameSpecification
The default implementation for this method always returns .long
. Implement this method for your custom EnumerableFlag
type to provide different name specifications for different cases.