1 package MooseX::Getopt::ProcessedArgv;
4 has 'argv_copy' => (is => 'ro', isa => 'ArrayRef');
5 has 'extra_argv' => (is => 'ro', isa => 'ArrayRef');
6 has 'usage' => (is => 'ro', isa => 'Maybe[Object]');
7 has 'constructor_params' => (is => 'ro', isa => 'HashRef');
8 has 'cli_params' => (is => 'ro', isa => 'HashRef');
12 __PACKAGE__->meta->make_immutable();
20 my $pa = My::App->process_argv(@params);
21 my $argv_copy = $pa->argv_copy();
22 my $extra_argv = $pa->extra_argv();
23 my $usage = $pa->usage();
24 my $constructor_params = $pa->constructor_params();
25 my $cli_params = $pa->cli_params();
29 This object contains the result of a L<MooseX::Getopt/process_argv> call. It
30 contains all the information that L<MooseX::Getopt/new_with_options> uses
35 Reference to a copy of the original C<@ARGV> array as it originally existed
36 at the time of C<new_with_options>.
40 Arrayref of leftover C<@ARGV> elements that L<Getopt::Long> did not parse.
44 Contains the L<Getopt::Long::Descriptive::Usage> object (if
45 L<Getopt::Long::Descriptive> is used).
47 =method constructor_params
49 Parameters passed to process_argv.
53 Command-line parameters parsed out of C<@ARGV>.