struct

Noir::CLI::ScanFlags::Flag

Inherits Struct < Value < Object

Constructors

new(long : String, description : String, arg : Arg = Arg::None, shorts : Array(String) = [] of String, hint : String = "value", choices : Array(String) = [] of String)
Source

Instance methods

arg
choice_list
Source
choices
clone
Source
copy_with(long _long = @long, description _description = @description, arg _arg = @arg, shorts _shorts = @shorts, hint _hint = @hint, choices _choices = @choices)
Source
description
hint

The word a shell shows in place of the value (:path:, :severity:). Cosmetic, but it is the only hint zsh gives for a freeform value.

long
names

Short forms first, matching how every generator lists them.

Source
shorts
takes_value?
Source