class FlagParser

Direct Known Subclasses

Defined in:

flag_parser.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.parse(args, &) #

[View source]

Instance Method Detail

def add_rule(rule_name, rule : Regex) #

[View source]
def add_rule(rule_name, rule : String) #

[View source]
def banner : Array(String) #

[View source]
def banner=(string) #

[View source]
def branch_on(*flags, parser subparser, doc description = nil) #

[View source]
def branch_on(*flags, parser subparser, doc description = nil, &block : Flag::Callback) #

[View source]
def help_group(group) #

[View source]
def on(*flags, doc description = nil, &block : Flag::Callback) #

type spec needed ?


[View source]
def parse(args) #

[View source]
def to_s #
Description copied from class Object

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.


[View source]