class

Lolcat::Parser

Inherits OptionParser < Reference < Object

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.

Constructors

new

Initializes the parser with all supported command line options.

Sets up all the command line options that lolcat supports and their corresponding handlers.

Source

Instance methods

help_message

The formatted help message string

Source
help_message=(help_message : String)

The formatted help message string

Source
opt

The options object that will be populated with parsed values

Source
parse(args)

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

Source