NAME
MooseX::App::ParsedArgv::Element - Parsed logical element from @ARGV
DESCRIPTION
Every instance of this class represents a logical entity from @ARGV
METHODS
key
Parameter value or option key
value
Arrayref of values. A value is represented by a MooseX::App::ParsedArgv::Value object.
add_value
Append a value
all_scalar_values
All values as scalars (in supplied order)
all_values
All values as MooseX::App::ParsedArgv::Value objects (in supplied order)
last_value
Last value as MooseX::App::ParsedArgv::Value object (as given by supplied order)
type
Type of element. Can be 'option', 'parameter' or 'extra'
consumed
Flag that indicates if element was already consumed
consume
Consumes element. Dies if element is already consumed
serialize
Serializes element (Does not procuce output that is identical with original @ARGV)
original
Tries to re-create the original input