NAME
Getopt::Kingpin::Args - command line arguments
SYNOPSIS
my
$args
= Getopt::Kingpin::Args->new;
$args
->add(
name
=>
'help'
,
description
=>
'Show context-sensitive help.'
,
)->bool();
DESCRIPTION
Getopt::Kingpin::Args is used from Getopt::Kingpin.
METHOD
new()
Create Getopt::Kingpin::Args object.
add(name => $name, description => $description)
Add Getopt::Kingpin::Arg instance which has $name and $description.
count()
Get count of Getopt::Kingpin::Arg objects.
get($name)
Get Getopt::Kingpin::Arg instance by $name.
my
$kingpin
= Getopt::Kingpin->new;
$kingpin
->arg(
'name'
,
'set name'
)->string();
$kingpin
->parse;
my
$name
=
$kingpin
->args->get(
"name"
);
get_by_index($index)
Get Getopt::Kingpin::Arg instance by $index.
$args
->get_by_index(0);
$args
->get_by_index(1);
get_all()
Get all Getopt::Kingpin::Arg instances.
keys()
Get array of name of Getopt::Kingpin::Arg. Get order is same as add() order.
values()
Get array of Getopt::Kingpin::Arg. get order is same as add() order.
_help_length()
Internal use only. Get length of help message.
help()
Return help message.
LICENSE
Copyright (C) sago35.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
sago35 <sago35@gmail.com>