File: exit.pm

package info (click to toggle)
libapp-cmd-perl 0.338-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 516 kB
  • sloc: perl: 1,727; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package Test::MyCmd::Command::exit;

use strict;
use warnings;

use parent qw(App::Cmd::Command);

=head1 NAME

Test::MyCmd::Command::exit - exit with a given value

=head1 DESCRIPTION

This package exists to exiting with exit();

=cut

sub execute {
  my ($self, $opt, $args) = @_;
  exit($args->[0] // 0);
}

1;