abstract class Optarg::Argument

Defined in:

optarg/argument.cr

Constructors

Instance Method Summary

Instance methods inherited from class Optarg::OptionBase

default default, set_default_to(result) set_default_to, validate(data) validate, with_default?(&) with_default?

Instance methods inherited from class Optarg::Definition

group : Symbol group, is_name?(name) is_name?, key key, metadata : Metadata metadata, names : Array(String) names, parse(args, index, data)
parse(arg, data)
parse
, type type

Constructor methods inherited from class Optarg::Definition

new(names : Array(String), metadata = nil, group = nil) new

Constructor Detail

def self.new(name, metadata, default : Nil | String = nil, required = nil, group = nil) #

[View source]

Instance Method Detail

def default : String | Nil #

[View source]
def set_default_to(data) #

[View source]
def type #

[View source]
def validate(data) #

[View source]