Maroš Kollár > MooseX-App-1.16 > MooseX::App::ParsedArgv

Download:
MooseX-App-1.16.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source   Latest Release: MooseX-App-1.30

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.

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

syntax highlighting: