Getopt::Kingpin::Flag - command line option object
use Getopt::Kingpin; my $kingpin = Getopt::Kingpin->new; my $name = $kingpin->flag('name', 'set name')->string(); $kingpin->parse; printf "name : %s\n", $name;
Getopt::Kingpin::Flag は、Getopt::Kingpinから使用するモジュールです。
Create Getopt::Kingpin::Flag object.
short optionを作成します。
デフォルト値を設定します。
デフォルト値を環境変数で上書きします。
そのオプションを必須とする。
$self->valueに値を設定します。 実際の処理ではGetopt::Kingpin::Type::以下のモジュールが使われます。
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.