abstract class Cli::OptionModel

Defined in:

cli/option_model.cr
cli/option_model/dsl/options.cr

Class Method Summary

Instance Method Summary

Macro Summary

Instance methods inherited from class Optarg::Model

command : Cli::CommandBase? command

Constructor methods inherited from class Optarg::Model

new(__command : Cli::CommandBase | Nil, argv) new

Class Method Detail

def self.__arguments #

[View source]
def self.__handlers #

[View source]
def self.__options #

[View source]
def self.__terminator #

[View source]
def self.parse(argv) #

[View source]

Instance Method Detail

def __new_parser(argv) #

[View source]
def __parse #

[View source]
def __parser #

[View source]

Macro Detail

macro arg(name, default = nil, desc = nil, required = nil, stop = nil) #

[View source]
macro array(names, var = nil, default = nil, desc = nil, min = nil) #

[View source]
macro bool(names, default = nil, not = nil, desc = nil, stop = nil) #

[View source]
macro help(names = nil, desc = nil) #

[View source]
macro on(names, desc = nil, &block) #

[View source]
macro string(names, var = nil, default = nil, desc = nil, required = nil, stop = nil) #

[View source]
macro version(names = nil, desc = nil) #

[View source]