1App::CLI::Command::VersUisoenr(3C)ontributed Perl DocumeAnptpa:t:iCoLnI::Command::Version(3)
2
3
4
6 App::CLI::Command::Version - Print a preformatted version string
7
9 package MyApp;
10 use base qw(App::CLI App::CLI::Command);
11
12 use constant alias => (
13 '--version' => '+App::CLI::Command::Version',
14 'version' => '+App::CLI::Command::Version',
15 # Other aliases
16 );
17
18 # Your app now supports a default version command and option
19
21 This is package provides a default "version" command modelled after
22 that of App::Cmd. You can modify the default message by subclassing
23 this command and overriding its "run" method, or by modifying it with
24 eg. Class::Method::Modifiers.
25
26
27
28perl v5.34.0 2021-07-22 App::CLI::Command::Version(3)