Getopt::Flex::Spec - Getopt::Flex's way of handling an option spec


Getopt-Flex documentation  | view source Contained in the Getopt-Flex distribution.

Index


NAME

Top

Getopt::Flex::Spec - Getopt::Flex's way of handling an option spec

VERSION

Top

version 1.07

DESCRIPTION

Top

This class is only meant to be used by Getopt::Flex and should not be used directly.

NAME

Top

Getopt::Flex::Spec - Specification class for Getopt::Flex

METHODS

Top

check_switch

Check whether or a not a switch belongs to this specification

set_switch

Set a switch to the supplied value

switch_requires_val

Check whether or not a switch requires a value

get_switch_error

Given a switch return any associated error message.

get_switch

Passing this function the name of a switch (or the switch spec) will cause it to return the value of a ScalarRef, a HashRef, or an ArrayRef (based on the type given), or undef if the given switch does not correspond to any defined switch.

AUTHOR

Top

Ryan P. Kelly <rpkelly@cpan.org>

COPYRIGHT AND LICENSE

Top


Getopt-Flex documentation  | view source Contained in the Getopt-Flex distribution.