1MooseX::Getopt::GLD(3pmU)ser Contributed Perl DocumentatiMoonoseX::Getopt::GLD(3pm)
2
3
4

NAME

6       MooseX::Getopt::GLD - A Moose role for processing command line options
7       with Getopt::Long::Descriptive
8

VERSION

10       version 0.74
11

SYNOPSIS

13         ## In your class
14         package My::App;
15         use Moose;
16
17         with 'MooseX::Getopt::GLD';
18
19         # or
20
21         with 'MooseX::Getopt::GLD' => { getopt_conf => [ 'pass_through', ... ] };
22
23         has 'out' => (is => 'rw', isa => 'Str', required => 1);
24         has 'in'  => (is => 'rw', isa => 'Str', required => 1);
25
26         # ... rest of the class here
27
28         ## in your script
29         #!/usr/bin/perl
30
31         use My::App;
32
33         my $app = My::App->new_with_options();
34         # ... rest of the script here
35
36         ## on the command line
37         % perl my_app_script.pl -in file.input -out file.dump
38

OPTIONS

40       This role is a parameterized role. It accepts one configuration
41       parameter, "getopt_conf". This parameter is an ArrayRef of strings,
42       which are Getopt::Long configuration options (see "Configuring
43       Getopt::Long" in Getopt::Long)
44

SUPPORT

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

AUTHOR

57       Stevan Little <stevan@iinteractive.com>
58
60       This software is copyright (c) 2007 by Infinity Interactive, Inc.
61
62       This is free software; you can redistribute it and/or modify it under
63       the same terms as the Perl 5 programming language system itself.
64
65
66
67perl v5.28.0                      2018-09-23          MooseX::Getopt::GLD(3pm)
Impressum