1 package MooseX::Getopt::ProcessedArgv;
3 # ABSTRACT: MooseX::Getopt::ProcessedArgv - Class containing the results of process_argv
5 has 'argv_copy' => (is => 'ro', isa => 'ArrayRef');
6 has 'extra_argv' => (is => 'ro', isa => 'ArrayRef');
7 has 'usage' => (is => 'ro', isa => 'Maybe[Object]');
8 has 'constructor_params' => (is => 'ro', isa => 'HashRef');
9 has 'cli_params' => (is => 'ro', isa => 'HashRef');
13 __PACKAGE__->meta->make_immutable();
21 my $pa = My::App->process_argv(@params);
22 my $argv_copy = $pa->argv_copy();
23 my $extra_argv = $pa->extra_argv();
24 my $usage = $pa->usage();
25 my $constructor_params = $pa->constructor_params();
26 my $cli_params = $pa->cli_params();
30 This object contains the result of a L<MooseX::Getopt/process_argv> call. It
31 contains all the information that L<MooseX::Getopt/new_with_options> uses
36 Reference to a copy of the original C<@ARGV> array as it originally existed
37 at the time of C<new_with_options>.
41 Arrayref of leftover C<@ARGV> elements that L<Getopt::Long> did not parse.
45 Contains the L<Getopt::Long::Descriptive::Usage> object (if
46 L<Getopt::Long::Descriptive> is used).
48 =method constructor_params
50 Parameters passed to process_argv.
54 Command-line parameters parsed out of C<@ARGV>.