struct Comandante::OptParserTypes::CommandConfig
- Comandante::OptParserTypes::CommandConfig
- Struct
- Value
- Object
Defined in:
comandante/opt_parser_types.crConstructors
Instance Method Summary
- #_id : String
- #action : CommandAction
- #arguments_range : Range(Int32, Int32)
- #arguments_string : String
- #clone
- #copy_with(name _name = @name, label _label = @label, description _description = @description, arguments_string _arguments_string = @arguments_string, arguments_range _arguments_range = @arguments_range, action _action = @action, options _options = @options, _id __id = @_id)
- #description : String
- #id
- #label : String
- #name : String
- #options : Array(OptionConfig)
Constructor Detail
def self.new(name : String, label : String, description : String = "", arguments_string : String = "", arguments_range : Range(Int32, Int32) = 0..MAX_ARGS, action : CommandAction = NullCommandAction.new, options : Array(OptionConfig) = Array(OptionConfig).new, _id : String = "")
#
Instance Method Detail
def copy_with(name _name = @name, label _label = @label, description _description = @description, arguments_string _arguments_string = @arguments_string, arguments_range _arguments_range = @arguments_range, action _action = @action, options _options = @options, _id __id = @_id)
#