Static Method (Default implementation)swift-argument-parser 1.6.1ArgumentParser
name(for:)
EnumerableFlag.swift:76static func name(for value: Self) -> NameSpecification
static func name(for value: Self) -> NameSpecification
s14ArgumentParser14EnumerableFlagPAAE4name3forAA17NameSpecificationVx_tFZ
What are these?4OFOJ
import ArgumentParser
Straightforward, type-safe argument parsing for Swift.
protocol EnumerableFlag : CaseIterable, Equatable
A type that represents the different possible flags to be used by a @Flag
property.
struct NameSpecification
A specification for how to represent a property as a command-line argument label.
static func name(for value: Self) -> NameSpecification
Returns the name specification to use for the given flag.
static func help(for value: Self) -> ArgumentHelp?