class DeepL::Parser
- DeepL::Parser
- OptionParser
- Reference
- Object
Defined in:
deepl/parser.crConstructors
Instance Method Summary
-
#help_message : String
Crystal's OptionParser returns to its initial state after parsing by
with_preserved_state
. -
#help_message=(help_message : String)
Crystal's OptionParser returns to its initial state after parsing by
with_preserved_state
. - #opt : Options
-
#parse(args)
Parses the passed args (defaults to
ARGV
), running the handlers associated to each option.
Macro Summary
Constructor Detail
Instance Method Detail
def help_message : String
#
Crystal's OptionParser returns to its initial state after parsing
by with_preserved_state
. This also initialises @flags.
@help_message is needed to store subcommand messages.
def help_message=(help_message : String)
#
Crystal's OptionParser returns to its initial state after parsing
by with_preserved_state
. This also initialises @flags.
@help_message is needed to store subcommand messages.
def parse(args)
#
Description copied from class OptionParser
Parses the passed args (defaults to ARGV
), running the handlers associated to each option.