NAME

Term::CLI::Argument::Number::Int - class for integer arguments in Term::CLI

VERSION

version 0.059000

SYNOPSIS

use Term::CLI::Argument::Number::Int;

my $arg = Term::CLI::Argument::Number::Int->new(
               name => 'count',
               min => 0,
               max => 100_000,
               inclusive => 1
          );

DESCRIPTION

Class for integer arguments in Term::CLI(3p). Extends Term::CLI::Argument::Number(3p).

Inherits from:

Term::CLI::Argument::Number(3p).

Consumes:

None.

CONSTRUCTORS

See Term::CLI::Argument::Number(3p).

ACCESSORS

See Term::CLI::Argument::Number(3p).

METHODS

Inherited from Term::CLI::Argument::Number(3p).

Additionally:

coerce_value ( VALUE )

Overloaded to check for a valid integer value.

SEE ALSO

Term::CLI::Argument::Number::Float(3p), Term::CLI::Argument::Number(3p), Term::CLI::Argument(3p), Term::CLI(3p).

AUTHOR

Steven Bakker <sbakker@cpan.org>, 2018.

COPYRIGHT AND LICENSE

Copyright (c) 2018 Steven Bakker

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perldoc perlartistic."

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.