The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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 は、Getopt::Kingpinから使用するモジュールです。 Flagを集合として扱います。

METHOD

new()

Create Getopt::Kingpin::Flags object.

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

$name と $description をもつGetopt::Kingpin::Flagを生成し、管理します。

get($name)

$name で指定したGetopt::Kingpin::Flagを取り出します。

keys()

定義されている$nameの一覧の出力します。 add()した順で出力されます。

values()

定義されているGetopt::Kingpin::Flagをすべて出力します。 add()した順で出力されます。

_help_length()

short_name、name、descriptionの文字列長を返します。

help()

ヘルプを表示します。

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>