name(for:)

Returns the name specification to use for the given flag.

EnumerableFlag.swift:64
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.