customLong(_:withSingleDash:)
Use the given string instead of the property’s name.
static func customLong(_ name: String, withSingleDash: Bool = false) -> NameSpecification
Parameters
- name
The name of the option or flag.
- withSingleDash
A Boolean value indicating whether to use a single dash as the prefix. If
false
, the name has a double-dash prefix.
Returns
A long
name specification with the requested name
.
To create a single-dash argument, pass true
as withSingleDash
. Note that combining single-dash options and options with short, single-character names can lead to ambiguities for the user.