NAME

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

SYNOPSIS

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;

DESCRIPTION

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

METHOD

set_value($value)

Set the value of $self->value. Converts strings to Path::Tiny objects and checks is_dir 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>