1MouseX::Getopt::Basic(3Upsme)r Contributed Perl DocumentaMtoiuosneX::Getopt::Basic(3pm)
2
3
4

SYNOPSIS

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

DESCRIPTION

29       This is like MouseX::Getopt and can be used instead except that it
30       doesn't make use of Getopt::Long::Descriptive (or "GLD" for short).
31
32       new_with_options
33           See "new_with_options" in MouseX::Getopt.
34
35
36
37perl v5.30.1                      2020-01-30        MouseX::Getopt::Basic(3pm)
Impressum