Term::CLI::Argument::Enum - class for "enum" string arguments in Term::CLI
version 0.04007
use Term::CLI::Argument::Enum; my $arg = Term::CLI::Argument::Enum->new( name => 'arg1', value_list => [qw( foo bar baz )], );
Class for "enum" string arguments in Term::CLI(3p).
This class inherits from the Term::CLI::Argument(3p) class.
Term::CLI::Argument(3p).
None.
See also Term::CLI::Argument(3p). The value_list argument is mandatory.
See also Term::CLI::Argument(3p).
A reference to a list of valid values for the argument.
The following methods are added or overloaded:
Term::CLI::Argument(3p), Term::CLI(3p).
Steven Bakker <sbakker@cpan.org>, 2018.
Copyright (c) 2018 Steven Bakker
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perldoc perlartistic."
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Term::CLI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::CLI
CPAN shell
perl -MCPAN -e shell install Term::CLI
For more information on module installation, please visit the detailed CPAN module installation guide.