struct Comandante::OptParserTypes::OptionConfig
- Comandante::OptParserTypes::OptionConfig
- Struct
- Value
- Object
Defined in:
comandante/opt_parser_types.crConstructors
Instance Method Summary
- #action : OptionAction
- #argument_string : String
- #clone
- #copy_with(name _name = @name, label _label = @label, short _short = @short, option_type _option_type = @option_type, default _default = @default, argument_string _argument_string = @argument_string, simple_action _simple_action = @simple_action, action _action = @action)
- #default : OptionValue
- #label : String
- #name : String
- #option_type : OptionStyle
- #short : String
- #simple_action : OptProc
Constructor Detail
def self.new(name : String, label : String, short : String = "", option_type : OptionStyle = OptionStyle::Switch, default : OptionValue = "", argument_string : String = "ARG", simple_action : OptProc = ->(s : OptionValue) do
end, action : OptionAction = NullOptionAction.new)
#
Instance Method Detail
def copy_with(name _name = @name, label _label = @label, short _short = @short, option_type _option_type = @option_type, default _default = @default, argument_string _argument_string = @argument_string, simple_action _simple_action = @simple_action, action _action = @action)
#