Bool

extension Bool: ExpressibleByStringArgument
  • Creates an instance initialized to the given string value. String values y, yes and true are represents the boolean value true, values n, no and false are represents the boolean value false, other values are returned as uninitialized object.

    Do not call this initializer directly. It is used by the CLI.ask(_:options:) and CLI.choose(_:choices:) functions.

    Declaration

    Swift

    public init?(stringArgument arg: String)