class

FlagParser

Inherits Reference < Object

Constructors

Class methods

parse(args, &)
Source

Instance methods

add_rule(rule_name, rule : Regex)
Source
add_rule(rule_name, rule : String)
Source
branch_on(*flags, parser subparser, doc description = nil)
Source
branch_on(*flags, parser subparser, doc description = nil, &block : Flag::Callback)
Source
help_group(group)
Source
on(*flags, doc description = nil, &block : Flag::Callback)

type spec needed ?

Source
parse(args)
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source

Nested types