Getopt::Kingpin::Type::ExistingDir - command line option object
use Getopt::Kingpin; my $kingpin = Getopt::Kingpin->new; my $lib_dir = $kingpin->flag('lib_dir', 'set lib_dir')->existing_dir(); $kingpin->parse; printf "lib_dir : %s\n", $lib_dir;
Getopt::Kingpin::Type::ExistingDir is the type definition for ExistingDir within Getopt::Kingpin.
Set the value of $self->value. Converts strings to Path::Tiny objects and checks is_dir is true.
is_dir
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.