table of contents
other versions
- Tumbleweed 0.520.0-1.2
- Leap-15.6
| App::CLI::Command::Version(3) | User Contributed Perl Documentation | App::CLI::Command::Version(3) |
NAME¶
App::CLI::Command::Version - Print a preformatted version string
SYNOPSIS¶
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
DESCRIPTION¶
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.
| 2025-06-03 | perl v5.42.0 |