ExpressibleByStringArgument
public protocol ExpressibleByStringArgument
A type that can be initialized with a string argument.
Any type that extends this can be used in CLI.ask(_:options:)
and CLI.choose(_:choices:)
functions.
-
Creates an instance initialized to the given string value.
Declaration
Swift
init?(stringArgument: String)
Parameters
stringArgument
The value of the new instance.