App::CLI::Command::Version - Print a preformatted version string
package MyApp; use base qw(App::CLI App::CLI::Command); use constant alias => ( '--version' => '+App::CLI::Command::Version', 'version' => '+App::CLI::Command::Version', # Other aliases ); # Your app now supports a default version command and option
This is package provides a default version command modelled after that of App::Cmd. You can modify the default message by subclassing this command and overriding its run method, or by modifying it with eg. Class::Method::Modifiers.
version
run
To install App::CLI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::CLI
CPAN shell
perl -MCPAN -e shell install App::CLI
For more information on module installation, please visit the detailed CPAN module installation guide.