Getopt-Long-Descriptive
view release on metacpan or search on metacpan
lib/Getopt/Long/Descriptive.pm view on Meta::CPAN
#pod If this option is present no other options will be returned. Other
#pod options present will be checked for proper types, but I<not> for
#pod constraints. This provides a way of specifying C<--help> style options.
#pod
#pod =item Params::Validate
#pod
#pod In addition, any constraint understood by Params::Validate may be used.
#pod
#pod For example, to accept positive integers:
#pod
#pod [ 'max-iterations=i', "maximum number of iterations",
#pod { callbacks => { positive => sub { shift() > 0 } } } ],
#pod
#pod (Internally, all constraints are translated into Params::Validate options or
#pod callbacks.)
#pod
#pod =back
#pod
#pod =head3 %arg
#pod
#pod The C<%arg> to C<describe_options> is optional. If the last parameter is a
lib/Getopt/Long/Descriptive.pm view on Meta::CPAN
If this option is present no other options will be returned. Other
options present will be checked for proper types, but I<not> for
constraints. This provides a way of specifying C<--help> style options.
=item Params::Validate
In addition, any constraint understood by Params::Validate may be used.
For example, to accept positive integers:
[ 'max-iterations=i', "maximum number of iterations",
{ callbacks => { positive => sub { shift() > 0 } } } ],
(Internally, all constraints are translated into Params::Validate options or
callbacks.)
=back
=head3 %arg
The C<%arg> to C<describe_options> is optional. If the last parameter is a
( run in 1.011 second using v1.01-cache-2.11-cpan-71847e10f99 )