File: primary.pm

package info (click to toggle)
libmoox-cmd-perl 0.017-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 320 kB
  • sloc: perl: 1,110; makefile: 2; sh: 1
file content (25 lines) | stat: -rw-r--r-- 368 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
24
25
package OptionTestApp::Cmd::primary;

use strict;
use warnings;

BEGIN
{
    my $moodel = $ENV{WHICH_MOODEL} || "Moo";
    eval "use $moodel;";
    $@ and die $@;
    $moodel->import;
}
use MooX::Cmd;
use MooX::Options;

option serious => (
    is          => "ro",
    negativable => 1,
    required    => 0,
    doc         => "serious?",
);

sub execute { @_ }

1;