abstract class Optarg::Model
- Optarg::Model
- Reference
- Object
Defined in:
optarg/model.croptarg/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
- #__args
- #__named_args
- #__nameless_args
- #__options
- #__parsed_args
- #__parsed_nodes
- #__parser
- #__unparsed_args
- #args
- #named_args
- #nameless_args
- #options
- #parse
- #parsed_args
- #unparsed_args
Macro Summary
- __add_argument(name, metadata = nil, required = nil, group = nil, stop = nil, default = nil)
- __add_bool_option(names, metadata = nil, default = nil, not = nil, group = nil, stop = nil)
- __add_handler(names, metadata = nil, group = nil, stop = nil)
- __add_string_array_option(names, metadata = nil, default = nil, min = nil, group = nil)
- __add_string_option(names, metadata = nil, default = nil, required = nil, group = nil, stop = nil)
- __argument_metadata_class_of(name)
- __define_argument(name)
- __define_bool_option(names, default = nil, not = [] of ::String)
- __define_handler(names, &block)
- __define_hashed_array_value_option(type, mixin, names)
- __define_hashed_value_option(type, mixin, names)
- __define_string_array_option(names)
- __define_string_option(names)
- __handler_metadata_class_of(names)
- __option_metadata_class_of(names)
- arg(name, metadata = nil, required = nil, group = nil, stop = nil, default = nil)
- array(names, metadata = nil, default = nil, min = nil, group = nil)
- bool(names, metadata = nil, default = nil, not = nil, group = nil, stop = nil)
- on(names, metadata = nil, group = nil, stop = nil, &block)
- string(names, metadata = nil, default = nil, required = nil, group = nil, stop = nil)
- terminator(string)
Constructor Detail
Class Method Detail
Instance Method Detail
Macro Detail
macro __add_argument(name, metadata = nil, required = nil, group = nil, stop = nil, default = nil)
#
macro __add_string_option(names, metadata = nil, default = nil, required = nil, group = nil, stop = nil)
#