abstract class Optarg::Model

Defined in:

optarg/model.cr
optarg/model/dsl/arg.cr
optarg/model/dsl/array.cr
optarg/model/dsl/bool.cr
optarg/model/dsl/handler.cr
optarg/model/dsl/string.cr
optarg/model/dsl/terminator.cr
optarg/model/macros/metadata.cr
optarg/model/macros/option.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(argv) #

[View source]

Class Method Detail

def self.__terminator #

[View source]

Instance Method Detail

def __args #

[View source]
def __named_args #

[View source]
def __nameless_args #

[View source]
def __options #

[View source]
def __parsed_args #

[View source]
def __parsed_nodes #

[View source]
def __parser #

[View source]
def __unparsed_args #

[View source]
def args #

[View source]
def named_args #

[View source]
def nameless_args #

[View source]
def options #

[View source]
def parse #

[View source]
def parsed_args #

[View source]
def unparsed_args #

[View source]

Macro Detail

macro __add_argument(name, metadata = nil, required = nil, group = nil, stop = nil, default = nil) #

[View source]
macro __add_bool_option(names, metadata = nil, default = nil, not = nil, group = nil, stop = nil) #

[View source]
macro __add_handler(names, metadata = nil, group = nil, stop = nil) #

[View source]
macro __add_string_array_option(names, metadata = nil, default = nil, min = nil, group = nil) #

[View source]
macro __add_string_option(names, metadata = nil, default = nil, required = nil, group = nil, stop = nil) #

[View source]
macro __argument_metadata_class_of(name) #

[View source]
macro __define_argument(name) #

[View source]
macro __define_bool_option(names, default = nil, not = [] of ::String) #

[View source]
macro __define_handler(names, &block) #

[View source]
macro __define_hashed_array_value_option(type, mixin, names) #

[View source]
macro __define_hashed_value_option(type, mixin, names) #

[View source]
macro __define_string_array_option(names) #

[View source]
macro __define_string_option(names) #

[View source]
macro __handler_metadata_class_of(names) #

[View source]
macro __option_metadata_class_of(names) #

[View source]
macro arg(name, metadata = nil, required = nil, group = nil, stop = nil, default = nil) #

[View source]
macro array(names, metadata = nil, default = nil, min = nil, group = nil) #

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

[View source]
macro on(names, metadata = nil, group = nil, stop = nil, &block) #

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

[View source]
macro terminator(string) #

[View source]