Getopt::Kingpin::Args - command line arguments
use Getopt::Kingpin::Args; my $args = Getopt::Kingpin::Args->new; $args->add( name => 'help', description => 'Show context-sensitive help.', )->bool();
Getopt::Kingpin::Args is used from Getopt::Kingpin.
Create Getopt::Kingpin::Args object.
Add Getopt::Kingpin::Arg instance which has $name and $description.
Get count of Getopt::Kingpin::Arg objects.
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 Getopt::Kingpin::Arg instance by $index.
$args->get_by_index(0); $args->get_by_index(1);
Get all Getopt::Kingpin::Arg instances.
Get array of name of Getopt::Kingpin::Arg. Get order is same as add() order.
Get array of Getopt::Kingpin::Arg. get order is same as add() order.
Internal use only. Get length of help message.
Return help message.
Copyright (C) sago35.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
sago35 <sago35@gmail.com>
To install Getopt::Kingpin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Getopt::Kingpin
CPAN shell
perl -MCPAN -e shell install Getopt::Kingpin
For more information on module installation, please visit the detailed CPAN module installation guide.