File: Common.pm

package info (click to toggle)
libmoosex-app-perl 1.43-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 712 kB
  • sloc: perl: 4,011; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ============================================================================
package MooseX::App::Role::Common;
# ============================================================================

use 5.010;
use utf8;

use namespace::autoclean;
use Moose::Role;

has extra_argv => (
    is => 'rw',
    isa => 'ArrayRef',
);

has 'help_flag' => (
    is              => 'ro',
    isa             => 'Bool',
    traits          => ['MooseX::App::Meta::Role::Attribute::Option'],
    cmd_flag        => 'help',
    cmd_aliases     => [ qw(h usage ?) ], # LOCALIZE
    cmd_type        => 'proto',
    cmd_position    => 99999,
    documentation   => 'Prints this usage information.', # LOCALIZE
);

1;