struct Comandante::OptParserTypes::OptionConfig

Defined in:

comandante/opt_parser_types.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def action : OptionAction #

def argument_string : String #

def clone #

[View source]
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) #

[View source]
def default : OptionValue #

def label : String #

def name : String #

def option_type : OptionStyle #

def short : String #

def simple_action : OptProc #