Bool
extension Bool: ExpressibleByStringArgument
-
Creates an instance initialized to the given string value. String values
y
,yes
andtrue
are represents the boolean valuetrue
, valuesn
,no
andfalse
are 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)