struct Clicr::Command::Option(T, D)

Defined in:

command.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(label : String | Nil = nil, short : Char | Nil = nil) #

[View source]
def self.new(type : T.class, label : String | Nil = nil, short : Char | Nil = nil) #

[View source]
def self.new(default : D, label : String | Nil = nil, short : Char | Nil = nil) #

[View source]

Instance Method Detail

def cast_value(raw_value : String) : T #

yields in cast of


[View source]
def default : D #

[View source]
def label : String | Nil #

[View source]
def short : Char | Nil #

[View source]
def string_option? : Bool #

[View source]
def type : T.class #

[View source]