in Sources/ArgumentParser/Parsable Properties/NameSpecification.swift [164:178]
func makeNames(withPrefix prefix: String, includingShort: Bool) -> [Name] {
return name.elements.compactMap { element -> Name? in
switch element.base {
case .short, .customShort:
return includingShort ? element.name(for: key) : nil
case .long:
let modifiedKey = InputKey(rawValue: key.rawValue.addingIntercappedPrefix(prefix))
return element.name(for: modifiedKey)
case .customLong(let name, let withSingleDash):
let modifiedName = name.addingPrefixWithAutodetectedStyle(prefix)
let modifiedElement = NameSpecification.Element.customLong(modifiedName, withSingleDash: withSingleDash)
return modifiedElement.name(for: key)
}
}
}