NAME
MooseX::App::ParsedArgv - Parses @ARGV
SYNOPSIS
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.
options_available
Returns an array of all parsed options that have not yet been consumed.
shift_argv
Shifts the first argument of the local @ARGV
extra
Returns all extra arguments
options
Returns all options as MooseX::App::ParsedArgv::Option objects