
MooseX::App::ParsedArgv - Parses @ARGV

use MooseX::App::ParsedArgv;
my $argv = MooseX::App::ParsedArgv->instance;
foreach my $option ($argv->available('option')) {
say "Parsed ".$option->key;
}

This is a helper class that holds all options parsed from @ARGV. It is implemented as a singleton. Unless you are developing a MooseX::App plugin you should not need to interact with this class.

Create a new MooseX::App::ParsedArgv instance.
Get the current MooseX::App::ParsedArgv instance. If there is no instance a new one will be created.
Get/set the original @ARGV.
Also available via new
Sets fuzzy hin
Also available via new
Shifts the first element from ARGV.
my @options = $self->available($type); OR my @options = $self->available();
Returns an array of all parsed options or parameters that have not yet been consumed. The array elements will be MooseX::App::ParsedArgv::Element objects.
my $option = $self->consume($type); OR my $option = $self->consume();
Returns the first option/parameter of the local @ARGV that has not yet been consumed as a MooseX::App::ParsedArgv::Element object.
Returns all parsed options and parameters.
Returns an array reference of unconsumed positional parameters and extra values.