1MooseX::Getopt::Basic(3U)ser Contributed Perl DocumentatiMoonoseX::Getopt::Basic(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

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

METHODS

37   new_with_options
38       See "new_with_options" in MooseX::Getopt.
39
41       Copyright 2007-2008 by Infinity Interactive, Inc.
42
43       <http://www.iinteractive.com>
44
45       This library is free software; you can redistribute it and/or modify it
46       under the same terms as Perl itself.
47
48
49
50perl v5.12.0                      2010-03-01          MooseX::Getopt::Basic(3)
Impressum