isOptionalArgument(withName:)
Returns a Boolean value that indicates whether the command argument identified by the specified argument key is an optional argument.
Declaration
func isOptionalArgument(withName argumentName: String) -> BoolParameters
- argumentName:
Argument name (used as a key) that identifies the command argument to examine.
Return Value
true if the specified argument exists and is optional; otherwise, false.