NAME

Sport::Analytics::NHL::Usage - an internal utility module standardizing the usage of our applications.

FUNCTIONS

convert_opt

A small routine converting the CLI option with dashes into a snake-case string

Arguments: the option text

Returns: the converted string
usage

Produces a usage message and exits

Arguments: [optional] exit status, defaults to 0

Returns: exits
gopts

This is the main wrapper for GetOptions to keep things coherent.

Arguments: usage message
           arrayref of options, by tags or specific opts
           arrayref of arguments
[optional] arrayref of explicitly excluded options

Returns: a list of options to which convert_opt() was applied.
Don't ask me why.
parse_start_stop_opts

Produces a start and end range of seasons or season weeks based on options specified.

Arguments: specified options
[optional] type of range, defaults to 'season'

Returns: the range between the start and the stop option,
         default applies.

AUTHOR

More Hockey Stats, <contact at morehockeystats.com>

BUGS

Please report any bugs or feature requests to contact at morehockeystats.com, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Sport::Analytics::NHL::Usage. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Sport::Analytics::NHL::Usage

You can also look for information at: