Getopt::Long::DescriptiveGetopt::Long::Descriptive is a Getopt::Long module with usage text. | |
Download |
Getopt::Long::Descriptive Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Hans Dieter Pearcey
- Publisher web site:
- http://search.cpan.org/~hdp/Email-MIME-XPath-0.005/lib/Email/MIME/XPath.pm
Getopt::Long::Descriptive Tags
Getopt::Long::Descriptive Description
Getopt::Long::Descriptive is a Getopt::Long module with usage text. Getopt::Long::Descriptive is a Getopt::Long module with usage text.SYNOPSIS use Getopt::Long::Descriptive; my ($opts, $usage) = describe_options($format, @opts, %arg);FORMAT $format = "usage: myprog %o myarg...";%o will be replaced with a list of the short options, as well as the text "" if any have been defined.%c will be replaced with what Getopt::Long::Descriptive thinks is the program name (see "prog_name"). You can override this guess by calling prog_name($string) yourself.Because of this, any literal % symbols will need to be written as %%.OPTIONSOption specifications are the same as in Getopt::Long. You should pass in an array of arrayrefs whose first elements are option specs and whose second elements are descriptions. my @opts = ( , , );Option specifications may have a third hashref argument. If present, this configures extra restrictions on the value or presence of that option.You may cause a blank line to be printed by passing an empty arrayref. Likewise, a plain descriptive line will be printed if you pass an arrayref with a single element: @opts = ( $option, [], , $other_option, ); Requirements: · Perl
Getopt::Long::Descriptive Related Software