NAME

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

SYNOPSIS

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

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

DESCRIPTION

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

METHOD

set_value($value)

Set the value of $self->value. Tests it against the regular expression /^-?[0-9]+$/.

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>