Bug#102394: ITP: libgetargs-long-perl -- Perl module to parse long function arguments
Package: wnpp
Severity: wishlist
Hi,
I intend to package libgetargs-long-perl, a.k.a. Getargs::Long. It's
indirectly needed by at least one package already in the archive (!),
and it seems a generally useful thing to have anyway. Think of the style
of argument passing accepted by CGI.pm - foo(-name => value) - if you
like.
Package: libgetargs-long-perl
Version: 0.1.3-1
Section: interpreters
Priority: optional
Architecture: all
Depends: perl (>= 5.6.1), liblog-agent-perl
Installed-Size: 112
Maintainer: Colin Watson <cjwatson@debian.org>
Description: Perl module to parse long function arguments
The Getargs::Long module allows usage of named parameters in function
calls, along with optional argument type-checking. It provides an easy
way to get at the parameters within the routine, and yields concise
descriptions for the common cases of all-mandatory and all-optional
parameter lists.
.
The validation of arguments can be done by a structure-driven routine
getargs() which is fine for infrequently called routines (but should be
slower), or via a dedicated routine created and compiled on the fly the
first time it is needed, by using the cgetargs() family (expected to be
faster).
.
The Log::Agent module is used to report errors, which leaves to the
application the choice of the final logging method: to a file, to
STDERR, or to syslog.
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: