abstract class Optarg::Argument

Defined in:

optarg/argument.cr

Constructors

Instance Method Summary

Instance methods inherited from class Optarg::OptionBase

default default, postset_default_to(data) postset_default_to, preset_default_to(data) preset_default_to, validate(data) validate, with_default?(&) with_default?

Instance methods inherited from class Optarg::Definition

group : Symbol group, key key, matches?(name) matches?, metadata : Metadata metadata, names : Array(String) names, parse(args, data) parse, stops? : Bool stops?, terminates? : Bool terminates?, type type

Constructor methods inherited from class Optarg::Definition

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

Constructor Detail

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

[View source]

Instance Method Detail

def default : String | Nil #

[View source]
def default=(default : String | Nil) #

[View source]
def display_name #

[View source]
def length #

[View source]
def postset_default_to(data) #

[View source]
def preset_default_to(data) #

[View source]
def required? : Bool #

[View source]
def type #

[View source]
def validate(data) #

[View source]