abstract class Optarg::OptionBase

Direct Known Subclasses

Defined in:

optarg/option_base.cr

Instance Method Summary

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

Instance Method Detail

def default #

[View source]
def set_default_to(result) #

[View source]
def validate(data) #

[View source]
def with_default?(&) #

[View source]