Term::CLI::Base - generic base class for Term::CLI classes
version 0.04007
package Term::CLI::Something { use Moo; extends 'Term::CLI::Base'; ... };
Generic base class for Term::CLI(3p) classes. This class provides some basic functions and attributes that all classes except Term::CLI::ReadLine share.
Element name. Can be any string, but must be specified at construction time.
Contains a diagnostic message in case of errors.
The active Term::CLI::ReadLine object.
Set the error() attribute to the concatenation of all STRING parameters and return a "failure" (undef or the empty list, depending on call context).
undef
Term::CLI(3p), Term::CLI::Element(3p), Term::CLI::ReadLine(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.