abstract class Optarg::Argument
- Optarg::Argument
- Optarg::OptionBase
- Optarg::Definition
- Reference
- Object
Defined in:
optarg/argument.crConstructors
Instance Method Summary
- #default : String | Nil
- #default=(default : String | Nil)
- #display_name
- #length
- #postset_default_to(data)
- #preset_default_to(data)
- #required? : Bool
- #type
- #validate(data)
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)
#