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');
10 __PACKAGE__->meta->make_immutable();
20 MooseX::Getopt::ProcessedArgv - contains result of process_argv
26 my $pa = My::App->process_argv(@params);
27 my $argv_copy = $pa->argv_copy();
28 my $extra_argv = $pa->extra_argv();
29 my $usage = $pa->usage();
30 my $constructor_params = $pa->constructor_params();
31 my $cli_params = $pa->cli_params();
35 This object contains the result of a L<MooseX::Getopt/process_argv> call. It
36 contains all the information that L<MooseX::Getopt/new_with_options> uses
45 Reference to a copy of the original C<@ARGV> array as it originally existed
46 at the time of C<new_with_options>.
50 Arrayref of leftover C<@ARGV> elements that L<Getopt::Long> did not parse.
54 Contains the L<Getopt::Long::Descriptive::Usage> object (if
55 L<Getopt::Long::Descriptive> is used).
57 =item constructor_params
59 Parameters passed to process_argv.
63 Command-line parameters parsed out of C<@ARGV>.
69 Stevan Little E<lt>stevan@iinteractive.comE<gt>
71 Brandon L. Black, E<lt>blblack@gmail.comE<gt>
73 Yuval Kogman, E<lt>nothingmuch@woobling.orgE<gt>
77 Ryan D Johnson, E<lt>ryan@innerfence.comE<gt>
79 Drew Taylor, E<lt>drew@drewtaylor.comE<gt>
81 Tomas Doran, (t0m) C<< <bobtfish@bobtfish.net> >>
83 =head1 COPYRIGHT AND LICENSE
85 This software is copyright (c) 2010 by Infinity Interactive, Inc.
87 This is free software; you can redistribute it and/or modify it under
88 the same terms as the Perl 5 programming language system itself.