Getopt::Mixed::Help 0.18
Sponsored Links
Getopt::Mixed::Help 0.18 Ranking & Summary
File size:
0.014 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
830
Date added:
2007-07-16
Publisher:
Thomas Dorner
Getopt::Mixed::Help 0.18 description
Getopt::Mixed::Help Perl module can combine Getopt::Mixed with usage and help.
SYNOPSIS
use Getopt::Mixed::Help
(< filenames >... => filenames to be processed,
ENV => SCRIPT_OPT_,
ENV_ => SCRIPT_OPT_,
d>debug:i number => turn on debugging information (*),
e>execute => do it without asking for confirmation,
f>force => override all safety checks,
i>interactive => asks for confirmation before doing it,
n>no-execute => just print what would be done without doing it,
q>quiet => suppress all information,
s>summary => print summary information on exit,
v>verbose:i number => turn on verbose information (*),
(*) => (*) You may add a positive integer for a higher level.
);
if ($opt_...
export SCRIPT_OPT_INTERACTIVE=1
test_script -d -v 2 --summary some_file.ext other_file.ext
ABSTRACT
Getopt::Mixed::Help is a simplified interface to Getopt::Mixed adding usage (help) functionality. It automatically adds the options -?, -h and --help (the last two configurable) to print the usage text. It allows to get option values from the environment (if the operating system it runs on supports environment variables). It can also add different flavours of support for multiple options. Finally it supports debugging output of the options used.
The module uses a direct import mechanism called with a hash as parameter. The structure of the hash is as follows:
The key is a combined (SHORT > LONG [ARGUMENT SPECIFIER [VALUE IDENTIFIER]]) option description for Getopt::Mixed, except for the VALUE IDENTIFIER which is simply included into the help text. The value following the key is simply the help text for this option.
If the second character of the first key is not >, the first key is taken as descriptive identifiers for additional parameters and the help for them.
Any key starting with ( and ending with ) will be interpreted as a footnote (additional help text) to the real options. They should be used at the end of the list only.
A key equal to ENV is used to get default values for the remaining options from the environment. For any option not initialised on the command line an environment variable with the prefix of the value following ENV and a rest of the name identical to the uppercase long option name (e.g. SCRIPT_OPT_DEBUG) will be checked. If this environment variable exists, it will be used to set the option. Note that in the name of the rest of the environment variable uppercase is used and hyphens are relaced with underlines.
A key equal to ENV_ is used in the same way as the key ENV. In addition it allows for a special environment variable with the prefix of the value following ENV followed by a single underline (_) as combined initialiser (for more than one option, e.g. export SCRIPT_OPT__=debug verbose=2). Note that no whitespaces are allowed in the values of the options initialised this way as the string in the environment variable is parsed in a simple way.
The module defines the variable $optUsage containing the complete help text.
If an option debug exists and is choosen on the command line, this module will print all option values and all remaining parameters to standard error. The name of this option may be changed, see "changing the debug option" below in the "CHANGING DEFAULT BEHAVIOUR" section.
SYNOPSIS
use Getopt::Mixed::Help
(< filenames >... => filenames to be processed,
ENV => SCRIPT_OPT_,
ENV_ => SCRIPT_OPT_,
d>debug:i number => turn on debugging information (*),
e>execute => do it without asking for confirmation,
f>force => override all safety checks,
i>interactive => asks for confirmation before doing it,
n>no-execute => just print what would be done without doing it,
q>quiet => suppress all information,
s>summary => print summary information on exit,
v>verbose:i number => turn on verbose information (*),
(*) => (*) You may add a positive integer for a higher level.
);
if ($opt_...
export SCRIPT_OPT_INTERACTIVE=1
test_script -d -v 2 --summary some_file.ext other_file.ext
ABSTRACT
Getopt::Mixed::Help is a simplified interface to Getopt::Mixed adding usage (help) functionality. It automatically adds the options -?, -h and --help (the last two configurable) to print the usage text. It allows to get option values from the environment (if the operating system it runs on supports environment variables). It can also add different flavours of support for multiple options. Finally it supports debugging output of the options used.
The module uses a direct import mechanism called with a hash as parameter. The structure of the hash is as follows:
The key is a combined (SHORT > LONG [ARGUMENT SPECIFIER [VALUE IDENTIFIER]]) option description for Getopt::Mixed, except for the VALUE IDENTIFIER which is simply included into the help text. The value following the key is simply the help text for this option.
If the second character of the first key is not >, the first key is taken as descriptive identifiers for additional parameters and the help for them.
Any key starting with ( and ending with ) will be interpreted as a footnote (additional help text) to the real options. They should be used at the end of the list only.
A key equal to ENV is used to get default values for the remaining options from the environment. For any option not initialised on the command line an environment variable with the prefix of the value following ENV and a rest of the name identical to the uppercase long option name (e.g. SCRIPT_OPT_DEBUG) will be checked. If this environment variable exists, it will be used to set the option. Note that in the name of the rest of the environment variable uppercase is used and hyphens are relaced with underlines.
A key equal to ENV_ is used in the same way as the key ENV. In addition it allows for a special environment variable with the prefix of the value following ENV followed by a single underline (_) as combined initialiser (for more than one option, e.g. export SCRIPT_OPT__=debug verbose=2). Note that no whitespaces are allowed in the values of the options initialised this way as the string in the environment variable is parsed in a simple way.
The module defines the variable $optUsage containing the complete help text.
If an option debug exists and is choosen on the command line, this module will print all option values and all remaining parameters to standard error. The name of this option may be changed, see "changing the debug option" below in the "CHANGING DEFAULT BEHAVIOUR" section.
Getopt::Mixed::Help 0.18 Screenshot
Getopt::Mixed::Help 0.18 Keywords
ENV
OPT
SCRIPT
Help 0.18
Help Perl
environment variable
Perl module
help text
option
help
environment
key
module
options
Getopt::Mixed::Help
GetoptMixedHelp
Bookmark Getopt::Mixed::Help 0.18
Getopt::Mixed::Help 0.18 Copyright
WareSeeker periodically updates pricing and software information of Getopt::Mixed::Help 0.18 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::Mixed::Help 0.18 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
optionsxpress
birth control options
صور بنات عاريات صور عرات صور سكس options
environment canada weather
stock options
value options
options trading
what are stock options
environmental
environment agency
options trading strategies
environmental protection agency
option one mortgage
internet options
options express
options for youth
career options
environmental issues
Related Software
Getopt::Helpful is an integrated option hash / help messages. Free Download
Getopt::ExPar contains extended parameters command line parser. Free Download
Getopt::Euclid is Perl module executable uniform command-Line interface descriptions. Free Download
Getopt::Declare is a Perl module with Declaratively Expressed Command-Line Arguments via Regular Expressions. Free Download
Getopt::Plus is a Perl module with options wrapper with standard options, help system and more. Free Download
Getopt::Lucid is a clear, readable syntax for command line processing. Free Download
Getopt::Simple is a Perl module that provides a simple wrapper around Getopt::Long. Free Download
Getopt::Clade is a Perl module with command-Line Argument Declaration Engine. Free Download
Latest Software
Popular Software
Favourite Software