Getopt::Helpful 0.04
Sponsored Links
Getopt::Helpful 0.04 Ranking & Summary
File size:
0.011 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1091
Date added:
2006-10-28
Publisher:
Eric L. Wilhelm
Getopt::Helpful 0.04 description
Getopt::Helpful is an integrated option hash / help messages.
STATE
This module is still under development, but is being publish on CPAN to satisfy some code which depends on it. The interface may change in a future version and some of the functionality is not yet complete.
SYNOPSIS
This module provides methods which integrate help messages into a Getopt::Long option spec. This gathers documentation and declaration into one place and allows you to utilize perl code to state the default values of options in your online help messages (helping you utilize the single-point-of-truth principle.)
Additionally, it provides DWIM methods (Get) which allow you to cut some standard error-checking code from your scripts. There is even a handy usage() method which eliminates that silly block of code from the beginning.
#!/usr/bin/perl
use warnings;
use strict;
use Getopt::Helpful;
my $var1 = "default";
my $req_arg;
# declare this as our or $main::verbose
our $verbose = 0;
# every option must be passed into the constructor...
my $hopt = Getopt::Helpful->new(
usage => CALLER
[options],
[
var=s, $default,
,
"setting for $var1 (default: $var1)"
],
[
a|arg, $req_arg,
,
required argument
],
+verbose,
+help,
);
# call GetOptions() behind the scenes (with error-checking)
$hopt->Get();
$req_arg or ($req_arg = shift);
# usage() called with a message results in non-zero exit code
$req_arg or $hopt->usage(missing required argument);
$verbose and warn "doing stuff nown";
# now do stuff...
STATE
This module is still under development, but is being publish on CPAN to satisfy some code which depends on it. The interface may change in a future version and some of the functionality is not yet complete.
SYNOPSIS
This module provides methods which integrate help messages into a Getopt::Long option spec. This gathers documentation and declaration into one place and allows you to utilize perl code to state the default values of options in your online help messages (helping you utilize the single-point-of-truth principle.)
Additionally, it provides DWIM methods (Get) which allow you to cut some standard error-checking code from your scripts. There is even a handy usage() method which eliminates that silly block of code from the beginning.
#!/usr/bin/perl
use warnings;
use strict;
use Getopt::Helpful;
my $var1 = "default";
my $req_arg;
# declare this as our or $main::verbose
our $verbose = 0;
# every option must be passed into the constructor...
my $hopt = Getopt::Helpful->new(
usage => CALLER
[
var=s, $default,
"setting for $var1 (default: $var1)"
],
[
a|arg, $req_arg,
required argument
],
+verbose,
+help,
);
# call GetOptions() behind the scenes (with error-checking)
$hopt->Get();
$req_arg or ($req_arg = shift);
# usage() called with a message results in non-zero exit code
$req_arg or $hopt->usage(missing required argument);
$verbose and warn "doing stuff nown";
# now do stuff...
Getopt::Helpful 0.04 Screenshot
Getopt::Helpful 0.04 Keywords
Helpful 0.04
option
messages
help
arg
req
code
Getopt::Helpful
GetoptHelpful
Getopt::Helpful 0.04
Libraries
Programming
Bookmark Getopt::Helpful 0.04
Getopt::Helpful 0.04 Copyright
WareSeeker periodically updates pricing and software information of Getopt::Helpful 0.04 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Getopt::Helpful 0.04 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
optiononeonline
messages in a bottle
صور بنات عاريات صور عرات صور سكس options
text messages
messages on hold
option one credit union
helpdesk
optionsxpress
messages from water
option 1
messages from god
away messages
stock options
homework help
funny text messages
option auto
birth control options
messages velvet revolver
Related Software
Getopt::Euclid is Perl module executable uniform command-Line interface descriptions. Free Download
Getopt::ExPar contains extended parameters command line parser. Free Download
Getopt::Popt is a Perl interface to the popt(3) library. Free Download
Getopt::Plus is a Perl module with options wrapper with standard options, help system and more. Free Download
Getopt::Mixed::Help Perl module can combine Getopt::Mixed with usage and help. Free Download
Getopt::Lucid is a clear, readable syntax for command line processing. Free Download
Getopt::Fancy is an object approach to handling command line options, focusing on end user happiness. Free Download
Tk::Getopt is a user configuration window for Tk with interface to Getopt::Long. Free Download
Latest Software
Popular Software
Favourite Software