YA::CLI::Usage - Class that handles usage and man page generation for action handlers
version 0.007
use YA::CLI::Usage; my $usage = YA::CLI::Usage->new( verbose => 1, rc => 1, message => 'Foo', pod_file => '/path/to/pod', ); $usage->run();
This module takes care of the pod2usage invocations done by the action handlers.
Defaults to 1. Maps to -verbose of "pod2usage" in Pod::Usage.
-verbose
The return value/code, defaults to 0. Maps to -exitval of "pod2usage" in Pod::Usage.
-exitval
An optional message. Maps to -message of "pod2usage" in Pod::Usage.
-message
Specifies the path to the pod file that is used if supplied.
Display the usage to your user.
Wesley Schwengle <waterkip@cpan.org>
This software is Copyright (c) 2022 by Wesley Schwengle.
This is free software, licensed under:
The (three-clause) BSD License
To install YA::CLI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm YA::CLI
CPAN shell
perl -MCPAN -e shell install YA::CLI
For more information on module installation, please visit the detailed CPAN module installation guide.