struct Clicr::Command::Option(T)

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 : T, label : String | Nil = nil, short : Char | Nil = nil) #

[View source]

Instance Method Detail

def default : T | Nil #

[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]