Getopt::Kingpin::Type::ExistingFile - command line option object
use Getopt::Kingpin; my $kingpin = Getopt::Kingpin->new; my $readme = $kingpin->flag('readme', 'set readme')->existing_file(); $kingpin->parse; printf "readme : %s\n", $readme;
Getopt::Kingpin::Type::ExistingFile は、Getopt::Kingpin内で使用する型定義です。
$self->valueに値を設定します。 値は、Path::Tinyによって処理されます。 必ず存在するfileである必要があります。
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.