| 1 | package App::Sandy::Command::Version; | ||
| 2 | # ABSTRACT: version command class. Print version | ||
| 3 | |||
| 4 | 1 | ▶ | use App::Sandy::Base 'class'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | use Pod::Usage; | ||
| 6 | |||
| 7 | extends 'App::Sandy::CLI::Command'; | ||
| 8 | |||
| 9 | our $VERSION = '0.25'; # VERSION | ||
| 10 | |||
| 11 | sub validate_args { | ||
| 12 | my ($self, $args) = @_; | ||
| 13 | die "Too many arguments: '@$args'\n" if @$args; | ||
| 14 | } | ||
| 15 | |||
| 16 | sub execute { | ||
| 17 | pod2usage(-verbose => 99, -sections => ['NAME', 'VERSION', 'AUTHOR', 'COPYRIGHT AND LICENSE'], -exitval => 0); | ||
| 18 | } | ||
| 19 | |||
| 20 | __END__ | ||