The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Term::CLI::Argument::String - class for basic string arguments in Term::CLI

VERSION

version 0.03001

SYNOPSIS

 use Term::CLI::Argument::String;

 my $arg = Term::CLI::Argument::String->new(name => 'arg1');

DESCRIPTION

Simple class for string arguments in Term::CLI(3p). This is basically the Term::CLI::Argument(3p) class, but also allowing empty strings.

CLASS STRUCTURE

Inherits from:

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

Consumes:

None.

CONSTRUCTORS

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

ACCESSORS

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

METHODS

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

validate ( Str )

Overloaded from Term::CLI::Argument to also allow empty strings.

SEE ALSO

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.