1MooseX::Getopt::Basic(3Upsme)r Contributed Perl DocumentaMtoioosneX::Getopt::Basic(3pm)
2
3
4

NAME

6       MooseX::Getopt::Basic - MooseX::Getopt::Basic - role to implement the
7       Getopt::Long functionality
8

VERSION

10       version 0.74
11

SYNOPSIS

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

DESCRIPTION

36       This is like MooseX::Getopt and can be used instead except that it
37       doesn't make use of Getopt::Long::Descriptive (or "GLD" for short).
38

METHODS

40   new_with_options
41       See "new_with_options" in MooseX::Getopt.
42
43   process_argv
44       See "process_argv" in MooseX::Getopt.
45

SUPPORT

47       Bugs may be submitted through the RT bug tracker
48       <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Getopt> (or
49       bug-MooseX-Getopt@rt.cpan.org <mailto:bug-MooseX-Getopt@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 "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.
56

AUTHOR

58       Stevan Little <stevan@iinteractive.com>
59
61       This software is copyright (c) 2007 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.28.1                      2018-09-23        MooseX::Getopt::Basic(3pm)
Impressum