MooseX::App::ParsedArgv - Parses @ARGV
use MooseX::App::ParsedArgv; my $argv = MooseX::App::ParsedArgv->instance; foreach my $option (@{$argv->options}) { say "Parsed ".$option->key; }
This is a helper class that holds all options parsed from @ARGV. It is implemented as a singleton.
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.
my @options = $self->available('options');
Returns an array of all parsed options or parameters that have not yet been consumed.
Returns the first option/parameter of the local @ARGV that has not yet been consumed.
Returns all positional parameters
Returns all extra values
Returns all options as MooseX::App::ParsedArgv::Option objects
To install MooseX::App, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::App
CPAN shell
perl -MCPAN -e shell install MooseX::App
For more information on module installation, please visit the detailed CPAN module installation guide.