struct Noir::CLI::ScanFlags::Flag

Defined in:

cli/scan_flags.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def arg : Arg #

def choice_list : String #

[View source]
def choices : Array(String) #

def clone #

[View source]
def copy_with(long _long = @long, description _description = @description, arg _arg = @arg, shorts _shorts = @shorts, hint _hint = @hint, choices _choices = @choices) #

[View source]
def description : String #

def long : String #

def names : Array(String) #

Short forms first, matching how every generator lists them.


[View source]
def shorts : Array(String) #

def takes_value? : Bool #

[View source]