-
-
06 Nov 2020 13:09:15 UTC
- Distribution: Getopt-Kingpin
- Module version: 0.10
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (5)
- Testers (278 / 0 / 0)
- Kwalitee
Bus factor: 1- 99.92% Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (26.01KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 4 contributors-
sago35
-
Pavel Goran
-
Syohei YOSHIDA
-
Toby Inkster
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>
Module Install Instructions
To install Getopt::Kingpin, copy and paste the appropriate command in to your terminal.
cpanm Getopt::Kingpin
perl -MCPAN -e shell install Getopt::Kingpin
For more information on module installation, please visit the detailed CPAN module installation guide.