Data::Object::Args

Data-Object Command-line Arguments

use Data::Object::Args;

my $args = Data::Object::Args->new(
  named => { command => 0, action => 1 }
);

$args->get(0); # $ARGV[0]
$args->get(1); # $ARGV[1]
$args->action; # $ARGV[1]
$args->command; # $ARGV[0]
$args->exists(0); # exists $ARGV[0]
$args->exists('command'); # exists $ARGV[0]
$args->get('command'); # $ARGV[0]

Data::Object::Role::Stashable

Data::Object::Library

named(HashRef, opt, ro)

This package provides an object-oriented interface to the process' command-line arguments.

7 POD Errors

The following errors were encountered while parsing the POD:

Around line 8:

Unknown directive: =name

Around line 12:

Unknown directive: =abstract

Around line 16:

Unknown directive: =synopsis

Around line 32:

Unknown directive: =integrates

Around line 36:

Unknown directive: =libraries

Around line 40:

Unknown directive: =attributes

Around line 44:

Unknown directive: =description