class
Lolcat::Parser
- Lolcat::Parser
- OptionParser
- Reference
- Object
Overview
Command line argument parser for the lolcat program.
This class extends Crystal's OptionParser to handle lolcat-specific command line options and convert them into an Options struct.
Defined in:
lolcat/parser.crConstructors
-
.new
Initializes the parser with all supported command line options.
Instance Method Summary
-
#help_message : String
The formatted help message string
-
#help_message=(help_message : String)
The formatted help message string
-
#opt : Options
The options object that will be populated with parsed values
-
#parse(args)
Parses the provided command line arguments.
Constructor Detail
Initializes the parser with all supported command line options.
Sets up all the command line options that lolcat supports and their corresponding handlers.
Instance Method Detail
Parses the provided command line arguments.
Processes the command line arguments and updates the options object with the parsed values.
args: The command line arguments to parse
Returns the updated Options object