struct Comandante::OptParserTypes::CommandConfig

Defined in:

comandante/opt_parser_types.cr

Constructors

Instance Method Summary

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

[View source]

Instance Method Detail

def _id : String #

def action : CommandAction #

def arguments_range : Range(Int32, Int32) #

def arguments_string : String #

def clone #

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

[View source]
def description : String #

def id #

[View source]
def label : String #

def name : String #

def options : Array(OptionConfig) #