The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MooseX::App::ParsedArgv - Parses @ARGV

SYNOPSIS

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

DESCRIPTION

This is a helper class that holds all options parsed from @ARGV. It is implemented as a singleton.

METHODS

new

Create a new MooseX::App::ParsedArgv instance

instance

Get the current MooseX::App::ParsedArgv instance. If there is no instance a new one will be created.

available

 my @options = $self->available('options');

Returns an array of all parsed options or parameters that have not yet been consumed.

consume

Returns the first option/parameter of the local @ARGV that has not yet been consumed.

parameter

Returns all positional parameters

extra

Returns all extra values

options

Returns all options as MooseX::App::ParsedArgv::Option objects