Getopt::Kingpin::Flags - command line option object
use Getopt::Kingpin::Flags; my $flags = Getopt::Kingpin::Flags->new; $flags->add( name => 'help', description => 'Show context-sensitive help.', )->bool();
Getopt::Kingpin::Flags is used from Getopt::Kingpin.
Create Getopt::Kingpin::Flags object.
Add Getopt::Kingpin::Flag instance which has $name and $description.
Unshift Getopt::Kingpin::Flag instances to $self->_flags
Get Getopt::Kingpin::Flag instance by $name.
Get all names of Getopt::Kingpin::Flag instances. Their order is same as add() order.
Get all Getopt::Kingpin::Flag instances. Their order is same as add() order.
Get count of Getopt::Kingpin::Arg objects.
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.