class Commander::Flag

Defined in:

commander/flag.cr

Constant Summary

FLOAT_PATTERN = /^(\d+|\d+\.\d+)$/
INT_PATTERN = /^\d+$/
LONG_PATTERN = /^\-\-[a-zA-Z0-9-]+$/
SHORT_PATTERN = /^\-[a-zA-Z0-9]$/

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]
def self.new(&) #

[View source]

Instance Method Detail

def arg : String | Nil #

[View source]
def default : Types #

[View source]
def default=(default : Types) #

[View source]
def description : String #

[View source]
def description=(description : String) #

[View source]
def long : String #

[View source]
def long=(long : String) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def persistent : Bool #

[View source]
def persistent=(persistent : Bool) #

[View source]
def short : String #

[View source]
def short=(short : String) #

[View source]