Skip to content

Initializer

init(name:short:help:)

Creates a new Option with the optionType set to .value.
init(name: String, short: Character? = nil, help: String = "")

Parameters

short

The short-hand for the flag that can be passed in to the command call.

help

The option’s help text when --help is passed in.

Discussion

@Option(name: "verbose", short: "v", help: "Output debug logs")
var verbose: Bool?