Class::Usul::Programs - Re-composable support for command line programs
# In YourClass.pm use Moo; extends q(Class::Usul::Programs); # In yourProg.pl use YourClass; exit YourClass->new_with_options( appclass => 'YourApplicationClass' )->run;
This base class provides methods common to command line programs. The constructor can initialise a multi-lingual message catalogue if required
Supports this list of command line options:
home
Directory containing the configuration file
Defines these attributes;
config_class
Overrides the default in the base class, setting it to Class::Usul::Config::Programs
Class::Usul::Config::Programs
Called just before the object is constructed this method modifier determines the location of the configuration file
This empty subroutine exists to allow for modification by the applied roles
Turning debug on produces log output at the debug level
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to http://rt.cpan.org/NoAuth/Bugs.html?Dist=Class-Usul. Patches are welcome
Peter Flanigan, <pjfl@cpan.org>
<pjfl@cpan.org>
Copyright (c) 2016 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install Class::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::Usul
CPAN shell
perl -MCPAN -e shell install Class::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.