Bool
extension Bool: ExpressibleByStringArgument
-
Creates an instance initialized to the given string value. String values
y,yesandtrueare represents the boolean valuetrue, valuesn,noandfalseare represents the boolean valuefalse, other values are returned as uninitialized object.Do not call this initializer directly. It is used by the
CLI.ask(_:options:)andCLI.choose(_:choices:)functions.Declaration
Swift
public init?(stringArgument arg: String)
View on GitHub
Bool Extension Reference