Initializer
init(name:short:help:completion:)
Creates a new
Option with the optionType set to .value.init(name: String, short: Character? = nil, help: String = "", completion: CompletionAction = .default)
Parameters
nameThe option’s identifying name that can be passed in to the command call.
shortThe short-hand for the flag that can be passed in to the command call.
helpThe option’s help text when
--helpis passed in.completionThe option’s shell completion action. See
CompletionActionfor more information and available actions.
Discussion
@Option(name: "verbose", short: "v", help: "Output debug logs")
var verbose: Bool?