++ed by:
TOBYINK JASEI MELO STAUGAARD
4 non-PAUSE users
Author image Masaaki Takasago
and 4 contributors

NAME

Getopt::Kingpin::Flags - command line option object

SYNOPSIS

    use Getopt::Kingpin::Flags;
    my $flags = Getopt::Kingpin::Flags->new;
    $flags->add(
        name        => 'help',
        description => 'Show context-sensitive help.',
    )->bool();

DESCRIPTION

Getopt::Kingpin::Flags is used from Getopt::Kingpin.

METHOD

new()

Create Getopt::Kingpin::Flags object.

add(name => $name, description => $description)

Add Getopt::Kingpin::Flag instance which has $name and $description.

unshift(@flags)

Unshift Getopt::Kingpin::Flag instances to $self->_flags

get($name)

Get Getopt::Kingpin::Flag instance by $name.

keys()

Get all names of Getopt::Kingpin::Flag instances. Their order is same as add() order.

values()

Get all Getopt::Kingpin::Flag instances. Their order is same as add() order.

count()

Get count of Getopt::Kingpin::Arg objects.

_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>