NAME

Getopt::Kingpin::Type::ExistingFileOrDir - command line option object

SYNOPSIS

use Getopt::Kingpin;
my $kingpin = Getopt::Kingpin->new;
my $lib_dir = $kingpin->flag('lib_dir', 'set lib_dir')->existing_file_or_dir();
$kingpin->parse;

printf "lib_dir : %s\n", $lib_dir;

DESCRIPTION

Getopt::Kingpin::Type::ExistingFileOrDir is the type definition for ExistingFileOrDir within Getopt::Kingpin.

METHOD

set_value($value)

Set the value of $self->value. Converts strings to Path::Tiny objects and checks exists is true.

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>