logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

perl v5.36.0                                       2023-10-22              MooseX::App::ParsedArgv::Element(3pm)

Name

       MooseX::App::ParsedArgv::Element - Parsed logical element from @ARGV

See Also