1MooseX::App::Cmd::CommaUnsde(r3pCmo)ntributed Perl DocumMeonotsaetXi:o:nApp::Cmd::Command(3pm)
2
3
4

NAME

6       MooseX::App::Cmd::Command - Base class for MooseX::Getopt based
7       App::Cmd::Commands
8

VERSION

10       version 0.32
11

SYNOPSIS

13           use Moose;
14
15           extends qw(MooseX::App::Cmd::Command);
16
17           # no need to set opt_spec
18           # see MooseX::Getopt for documentation on how to specify options
19           has option_field => (
20               isa => 'Str',
21               is  => 'rw',
22               required => 1,
23           );
24
25           sub execute {
26               my ( $self, $opts, $args ) = @_;
27
28               print $self->option_field; # also available in $opts->{option_field}
29           }
30

DESCRIPTION

32       This is a replacement base class for App::Cmd::Command classes that
33       includes MooseX::Getopt and the glue to combine the two.
34

METHODS

36   _process_args
37       Replaces App::Cmd::Command's argument processing in favor of
38       MooseX::Getopt based processing.
39
40       If your class does the MooseX::ConfigFromFile role (or any of its
41       consuming roles like MooseX::SimpleConfig), this will provide an
42       additional "--configfile" command line option for loading options from
43       a configuration file.
44

SUPPORT

46       Bugs may be submitted through the RT bug tracker
47       <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-App-Cmd> (or
48       bug-MooseX-App-Cmd@rt.cpan.org <mailto:bug-MooseX-App-
49       Cmd@rt.cpan.org>).
50
51       There is also a mailing list available for users of this distribution,
52       at http://lists.perl.org/list/moose.html.
53
54       There is also an irc channel available for users of this distribution,
55       at irc://irc.perl.org/#moose.
56

AUTHOR

58       XXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>
59
61       This software is copyright (c) 2008 by Infinity Interactive, Inc..
62
63       This is free software; you can redistribute it and/or modify it under
64       the same terms as the Perl 5 programming language system itself.
65
66
67
68perl v5.32.1                      2021-01-27    MooseX::App::Cmd::Command(3pm)
Impressum