r options
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 3068
Options.pm 1.5
Options.pm is a command-line option-parsing Perl module meant to imitate the syntax of the t.p.usage.Options module. more>>
Options.pm is a command-line option-parsing Perl module meant to imitate the syntax of the t.p.usage.Options module from the Twisted Python library.
This module will allow you to specify which options to look for on the command line, and supports both long and short versions of simple flags and parameters. If a required parameter is unspecified, Options.pm will print nicely formatted usage information with the error.
<<lessThis module will allow you to specify which options to look for on the command line, and supports both long and short versions of simple flags and parameters. If a required parameter is unspecified, Options.pm will print nicely formatted usage information with the error.
Download (0.007MB)
Added: 2007-07-13 License: Perl Artistic License Price:
837 downloads
options 0.4pre5
options is a small and simple library for parsing commandline options. more>>
options is a small and simple library for parsing commandline options. It is not intended to rival popt or the like, so if you need really fancy option parsing `options is not for you.
Installation:
./configure
make install
Main features:
- long and short options
- options that take no argument are `counters by default; these start from zero and are incremented each time theyre specified
- default values for all types of options
- interpret option values as integer or string, or both
- print table of options and help messages (with default values)
<<lessInstallation:
./configure
make install
Main features:
- long and short options
- options that take no argument are `counters by default; these start from zero and are incremented each time theyre specified
- default values for all types of options
- interpret option values as integer or string, or both
- print table of options and help messages (with default values)
Download (0.30MB)
Added: 2005-10-06 License: GPL (GNU General Public License) Price:
1478 downloads
App::Options 1.02
App::Options is Perl module combine command line options, environment vars, and option file values (for program configuration). more>>
App::Options is Perl module to combine command line options, environment vars, and option file values (for program configuration).
SYNOPSIS
#!/usr/local/bin/perl
use App::Options; # reads option values into %App::options by default
# do something with the options (in %App::options)
use DBI;
$dsn = "dbi:mysql:database=$App::options{dbname}";
$dbh = DBI->connect($dsn, $App::options{dbuser}, $App::options{dbpass});
...
Get help from the command line (assuming program is named "prog") ...
prog -?
Option values may be provided on the command line, in environment variables, and option files. (i.e. $ENV{APP_DBNAME} would set the value of %App::options{dbname} by default.)
The "dbname" and other options could also be set in one of the following configuration files
$HOME/.app/prog.conf
$HOME/.app/app.conf
$PROGDIR/prog.conf
$PROGDIR/app.conf
$PREFIX/etc/app/prog.conf
$PREFIX/etc/app/app.conf
/etc/app/app.conf
with a file format like
[prog]
dbname = prod
dbuser = scott
dbpass = tiger
See below for a more detailed explanation of these and other advanced features.
App::Options combines command-line arguments, environment variables, option files, and program defaults to produce a hash of option values.
<<lessSYNOPSIS
#!/usr/local/bin/perl
use App::Options; # reads option values into %App::options by default
# do something with the options (in %App::options)
use DBI;
$dsn = "dbi:mysql:database=$App::options{dbname}";
$dbh = DBI->connect($dsn, $App::options{dbuser}, $App::options{dbpass});
...
Get help from the command line (assuming program is named "prog") ...
prog -?
Option values may be provided on the command line, in environment variables, and option files. (i.e. $ENV{APP_DBNAME} would set the value of %App::options{dbname} by default.)
The "dbname" and other options could also be set in one of the following configuration files
$HOME/.app/prog.conf
$HOME/.app/app.conf
$PROGDIR/prog.conf
$PROGDIR/app.conf
$PREFIX/etc/app/prog.conf
$PREFIX/etc/app/app.conf
/etc/app/app.conf
with a file format like
[prog]
dbname = prod
dbuser = scott
dbpass = tiger
See below for a more detailed explanation of these and other advanced features.
App::Options combines command-line arguments, environment variables, option files, and program defaults to produce a hash of option values.
Download (0.033MB)
Added: 2007-02-20 License: Perl Artistic License Price:
977 downloads
Tab Clicking Options 0.6.8
Tab Clicking Options allows you to select actions for various clicking events on a tab or the tab bar. more>>
Tab Clicking Options allows you to select actions for various clicking events on a tab or the tab bar.
Tab Clicking Options lets you select an action to perform with different clicking events on the tab bar or a tab in Firefox and in Mozilla Suite. The events you can assign an action to are:
- Double clicking
- Clicking with middle mouse button
- Left clicking with control-key (or meta-key on Mac) pressed
- Left clicking with alt-key pressed
- Left clicking with shift-key pressed
And the actions which you can choose from are:
- Open a new tab
- Reload the tab
- Reload all tabs
- Close tab
- Close other tabs
- Close all tabs
- Duplicate Tab
- Duplicate Tab in New Window
- Undo Close Tab (only in Firefox 2.0 beta or with extensions)
- Bookmark Tab
- Bookmark All Tabs (not in Firefox 1.0)
- No Action
<<lessTab Clicking Options lets you select an action to perform with different clicking events on the tab bar or a tab in Firefox and in Mozilla Suite. The events you can assign an action to are:
- Double clicking
- Clicking with middle mouse button
- Left clicking with control-key (or meta-key on Mac) pressed
- Left clicking with alt-key pressed
- Left clicking with shift-key pressed
And the actions which you can choose from are:
- Open a new tab
- Reload the tab
- Reload all tabs
- Close tab
- Close other tabs
- Close all tabs
- Duplicate Tab
- Duplicate Tab in New Window
- Undo Close Tab (only in Firefox 2.0 beta or with extensions)
- Bookmark Tab
- Bookmark All Tabs (not in Firefox 1.0)
- No Action
Download (0.022MB)
Added: 2007-04-28 License: MPL (Mozilla Public License) Price:
911 downloads
Getopt::GUI::Long 0.7
Getopt::GUI::Long is a wrapper around Getopt::Long that extends the value of the original Getopt::Long module. more>>
Getopt::GUI::Long is a wrapper around Getopt::Long that extends the value of the original Getopt::Long module.
SYNOPSIS
use Getopt::GUI::Long;
# pass useful config options to Configure
Getopt::GUI::Long::Configure(qw(display_help no_ignore_case capture_output));
GetOptions(%opts,
["GUI:separator", "Important Flags:"],
["f|some-flag=s", "A flag based on a string"],
["o|other-flag", "A boloean"],
);
# or use references instead of a hash (less tested, however):
GetOptions(["some-flag=s", "perform some flag based on a value"] => $flag,
["other-flag=s", "perform some flag based on a value"] => $other);
# displays auto-help given the input above:
% opttest -h
Usage: opttest [OPTIONS] Other Arguments
OPTIONS:
Important Flags:
-f STRING A flag based on a string
-o A boloean
Help Options:
-h Display help options -- short flags preferred
--help Display help options -- long flags preferred
--help-full Display all help options -- short and long
# or long help:
% opttest --help
Usage: opttest [OPTIONS] Other Arguments
OPTIONS:
Important Flags:
--some-flag=STRING A flag based on a string
--other-flag A boloean
Help Options:
-h Display help options -- short flags preferred
--help Display help options -- long flags preferred
--help-full Display all help options -- short and long
# or a GUI screen:
(see http://net-policy.sourceforge.net/images/getopt_example.png )
It can:
1) add a simple graphical user interface option screen if no arguments are passed to the program. Thus, the arguments to actually use are built based on the results of the user interface. If arguments were passed to the program, the user interface is not shown and the program executes as it normally would and acts just as if Getopt::Long::GetOptions had been called instead.
2) provide an auto-help mechanism such that -h and --help are handled automatically. In fact, calling your program with -h will default to showing the user a list of short-style arguments when one exists for the option. Similarly --help will show the user a list of long-style when possible. --help-full will list all potential arguments for an option (short and long both).
Its designed to make the creation of graphical shells trivial without the programmer having to think about it much as well as providing automatic good-looking usage output without the programmer needing to write usage() functions.
<<lessSYNOPSIS
use Getopt::GUI::Long;
# pass useful config options to Configure
Getopt::GUI::Long::Configure(qw(display_help no_ignore_case capture_output));
GetOptions(%opts,
["GUI:separator", "Important Flags:"],
["f|some-flag=s", "A flag based on a string"],
["o|other-flag", "A boloean"],
);
# or use references instead of a hash (less tested, however):
GetOptions(["some-flag=s", "perform some flag based on a value"] => $flag,
["other-flag=s", "perform some flag based on a value"] => $other);
# displays auto-help given the input above:
% opttest -h
Usage: opttest [OPTIONS] Other Arguments
OPTIONS:
Important Flags:
-f STRING A flag based on a string
-o A boloean
Help Options:
-h Display help options -- short flags preferred
--help Display help options -- long flags preferred
--help-full Display all help options -- short and long
# or long help:
% opttest --help
Usage: opttest [OPTIONS] Other Arguments
OPTIONS:
Important Flags:
--some-flag=STRING A flag based on a string
--other-flag A boloean
Help Options:
-h Display help options -- short flags preferred
--help Display help options -- long flags preferred
--help-full Display all help options -- short and long
# or a GUI screen:
(see http://net-policy.sourceforge.net/images/getopt_example.png )
It can:
1) add a simple graphical user interface option screen if no arguments are passed to the program. Thus, the arguments to actually use are built based on the results of the user interface. If arguments were passed to the program, the user interface is not shown and the program executes as it normally would and acts just as if Getopt::Long::GetOptions had been called instead.
2) provide an auto-help mechanism such that -h and --help are handled automatically. In fact, calling your program with -h will default to showing the user a list of short-style arguments when one exists for the option. Similarly --help will show the user a list of long-style when possible. --help-full will list all potential arguments for an option (short and long both).
Its designed to make the creation of graphical shells trivial without the programmer having to think about it much as well as providing automatic good-looking usage output without the programmer needing to write usage() functions.
Download (0.012MB)
Added: 2006-11-02 License: Perl Artistic License Price:
1086 downloads
Getopt::Function 0.017
Getopt::Function is a Perl module to provide mixed options with help information. more>>
Getopt::Function is a Perl module to provide mixed options with help information.
SYNOPSIS
use Getopt::Function qw(maketrue makevalue);
$::opthandler = new Getopt::Function
[ ], { => [ , ,
] }
$result = GetOptions (...option-descriptions...);
$::opthandler->std_opts;
$::opthandler->check_opts;
The aim of this module is to make it easy to provide sophisticated and complex interfaces to commands in a simple to use and clear manner with proper help facilities.
It is designed to do this by making it possible to write the options, with documentation and subroutines to implement them, directly into a hash and then call the appropriate ones as options detected on the command line.
<<lessSYNOPSIS
use Getopt::Function qw(maketrue makevalue);
$::opthandler = new Getopt::Function
[ ], { => [ , ,
] }
$result = GetOptions (...option-descriptions...);
$::opthandler->std_opts;
$::opthandler->check_opts;
The aim of this module is to make it easy to provide sophisticated and complex interfaces to commands in a simple to use and clear manner with proper help facilities.
It is designed to do this by making it possible to write the options, with documentation and subroutines to implement them, directly into a hash and then call the appropriate ones as options detected on the command line.
Download (0.013MB)
Added: 2006-10-30 License: Perl Artistic License Price:
1089 downloads
Tk::Optionmenu 804.027
Tk::Optionmenu will let the user select one of some predefined options values. more>>
Tk::Optionmenu will let the user select one of some predefined options values.
SYNOPSIS
use Optionmenu;
$opt = $w->Optionmenu(
-options => REFERENCE_to_OPTIONLIST,
-command => CALLBACK,
-variable => SCALAR_REF,
);
$opt->addOptions( OPTIONLIST );
# OPTION LIST is
# a) $val1, $val2, $val3,...
# b) [ $lab1=>$val1], [$lab2=>val2], ... ]
# c) combination of a) and b), e.g.,
# val1, [$lab2=>val2], val3, val4, [...], ...
The Optionmenu widget allows the user chose between a given set of options.
If the user should be able to change the available option have a look at Tk::BrowseEntry.
OPTIONS
-options
(Re)sets the list of options presented.
-command
Defines the callback that is invokes when a new option is selected.
-variable
Reference to a scalar that contains the current value of the selected option.
-textvariable
Reference to a scalar that contains the text label of the current value of the selected option.
METHODS
addOptions
Adds OPTION_LIST to the already available options.
EXAMPLE
use Tk;
my $mw = MainWindow->new();
my ($var, $tvar);
my $opt = $mw->Optionmenu(
-options => [[jan=>1], [feb=>2], [mar=>3], [apr=>4]],
-command => sub { print "got: ", shift, "n" },
-variable => $var,
-textvariable => $tvar
)->pack;
$opt->addOptions([may=>5],[jun=>6],[jul=>7],[aug=>8]);
my $f = $mw->Frame(-relief=>groove, -borderwidth => 2)->pack;
$f->Label(-textvariable=>$tvar)->pack(-side => left);
$f->Label(-text => " -> ")->pack(-side => left);
$f->Label(-textvariable=>$var)->pack(-side => left);
$mw->Button(-text=>Exit, -command=>sub{$mw->destroy})->pack;
MainLoop;
<<lessSYNOPSIS
use Optionmenu;
$opt = $w->Optionmenu(
-options => REFERENCE_to_OPTIONLIST,
-command => CALLBACK,
-variable => SCALAR_REF,
);
$opt->addOptions( OPTIONLIST );
# OPTION LIST is
# a) $val1, $val2, $val3,...
# b) [ $lab1=>$val1], [$lab2=>val2], ... ]
# c) combination of a) and b), e.g.,
# val1, [$lab2=>val2], val3, val4, [...], ...
The Optionmenu widget allows the user chose between a given set of options.
If the user should be able to change the available option have a look at Tk::BrowseEntry.
OPTIONS
-options
(Re)sets the list of options presented.
-command
Defines the callback that is invokes when a new option is selected.
-variable
Reference to a scalar that contains the current value of the selected option.
-textvariable
Reference to a scalar that contains the text label of the current value of the selected option.
METHODS
addOptions
Adds OPTION_LIST to the already available options.
EXAMPLE
use Tk;
my $mw = MainWindow->new();
my ($var, $tvar);
my $opt = $mw->Optionmenu(
-options => [[jan=>1], [feb=>2], [mar=>3], [apr=>4]],
-command => sub { print "got: ", shift, "n" },
-variable => $var,
-textvariable => $tvar
)->pack;
$opt->addOptions([may=>5],[jun=>6],[jul=>7],[aug=>8]);
my $f = $mw->Frame(-relief=>groove, -borderwidth => 2)->pack;
$f->Label(-textvariable=>$tvar)->pack(-side => left);
$f->Label(-text => " -> ")->pack(-side => left);
$f->Label(-textvariable=>$var)->pack(-side => left);
$mw->Button(-text=>Exit, -command=>sub{$mw->destroy})->pack;
MainLoop;
Download (5.7MB)
Added: 2007-08-21 License: Perl Artistic License Price:
794 downloads
Getopt::Long 2.36
Getopt::Long is an extended processing of command line options. more>>
Getopt::Long is an extended processing of command line options.
SYNOPSIS
use Getopt::Long;
my $data = "file.dat";
my $length = 24;
my $verbose;
$result = GetOptions ("length=i" => $length, # numeric
"file=s" => $data, # string
"verbose" => $verbose); # flag
The Getopt::Long module implements an extended getopt function called GetOptions(). This function adheres to the POSIX syntax for command line options, with GNU extensions.
In general, this means that options have long names instead of single letters, and are introduced with a double dash "--". Support for bundling of command line options, as was the case with the more traditional single-letter approach, is provided but not enabled by default.
<<lessSYNOPSIS
use Getopt::Long;
my $data = "file.dat";
my $length = 24;
my $verbose;
$result = GetOptions ("length=i" => $length, # numeric
"file=s" => $data, # string
"verbose" => $verbose); # flag
The Getopt::Long module implements an extended getopt function called GetOptions(). This function adheres to the POSIX syntax for command line options, with GNU extensions.
In general, this means that options have long names instead of single letters, and are introduced with a double dash "--". Support for bundling of command line options, as was the case with the more traditional single-letter approach, is provided but not enabled by default.
Download (0.040MB)
Added: 2007-08-10 License: Perl Artistic License Price:
806 downloads
aB Backup Tools 0.3
aB Backup Tools is a toolset for creating and maintaining backups and recoveries of important data on your system. more>>
aB Backup Tools is a toolset for creating and maintaining backups and recoveries of important data on your system.
Enhancements:
- memory leaks fixed,
- options optimized,
- some look changes.
<<lessEnhancements:
- memory leaks fixed,
- options optimized,
- some look changes.
Download (0.28MB)
Added: 2005-05-27 License: GPL (GNU General Public License) Price:
1613 downloads
TiWarriors 0.4
TiWarriors is an Asteroids clone with multiplayer support and incremental ship control. more>>
TiWarriors project is an Asteroids clone with multiplayer support and incremental ship control.
Two things differ from the original: energy control and multiplayer mode.
Enhancements:
- added some config options like antialiasing and the option to switch to full screen or window mode.
<<lessTwo things differ from the original: energy control and multiplayer mode.
Enhancements:
- added some config options like antialiasing and the option to switch to full screen or window mode.
Download (MB)
Added: 2006-12-07 License: GPL (GNU General Public License) Price:
1052 downloads
Getopt::OO 0.07
Getopt::OO is an object oriented command line parser. more>>
Getopt::OO is an object oriented command line parser. It handles short, long and multi (--x ... -) value options. Getopt::OO module also incorporates help for options to simplify generation of usage statements.
SYNOPSIS
use Getopt::OO qw(Debug Verbose);
my ($handle) = Getopt::OO->new(@ARGV,
-d => {
help => turn on debug output,
callback => sub {Debug(1); 0},
},
-o => {
help => another option.,
},
-f => {
help => option that expects one more value.,
n_values => 1,
},
--long {
help => long option
},
--multiple_ => {
help => [
"Everything between --multiple_values and - is",
"an value for this options",
],
multi_value => 1,
multiple= => 1, # Can happen more than once on command line.
},
other_values => {
help => file_1 ... file_n,
multi_value => 1,
},
);
if ($handle->Values()) {
Debug("You will get output if -d was on command line");
if (my $f = handle->Values(-f)) {
print "Got $f with the -f value.n";
}
}
else {
print "No options found on command line.n";
}
Getopt::OO is an object oriented tool for parsing command line arguments. It expects a reference to the input arguments and uses a perl hash to describe how the command line arguments should be parsed. Note that by parsed, we mean what options expect values, etc. We check to make sure values exist on the command line as necessary -- nothing else. The caller is responsible for making sure that a value that he knows should be a file exists, is writable, or whatever.
Command line arguments can be broken into two distinct types: options and values that are associated with these options. In windows, options often start with a / but sometimes with a -, but in unix they almost universally start with a -. For this module options start with a -. We support two types of options: the short single dashed options and the long double dashed options.
The difference between these two is that with this module the short options can be combined into a single option, but the long options can not. For example, most of us will be familiar with the tar -xvf file command which can also be expressed as -x -v -f file. Long options can not be combined this way, so --help for example must always stand by itself.
The input template expects the option names as its keys. For instance if you were expecting -xv --hello as possible command line options, the keys for your template hash would be -x, -v, and --hello.
<<lessSYNOPSIS
use Getopt::OO qw(Debug Verbose);
my ($handle) = Getopt::OO->new(@ARGV,
-d => {
help => turn on debug output,
callback => sub {Debug(1); 0},
},
-o => {
help => another option.,
},
-f => {
help => option that expects one more value.,
n_values => 1,
},
--long {
help => long option
},
--multiple_ => {
help => [
"Everything between --multiple_values and - is",
"an value for this options",
],
multi_value => 1,
multiple= => 1, # Can happen more than once on command line.
},
other_values => {
help => file_1 ... file_n,
multi_value => 1,
},
);
if ($handle->Values()) {
Debug("You will get output if -d was on command line");
if (my $f = handle->Values(-f)) {
print "Got $f with the -f value.n";
}
}
else {
print "No options found on command line.n";
}
Getopt::OO is an object oriented tool for parsing command line arguments. It expects a reference to the input arguments and uses a perl hash to describe how the command line arguments should be parsed. Note that by parsed, we mean what options expect values, etc. We check to make sure values exist on the command line as necessary -- nothing else. The caller is responsible for making sure that a value that he knows should be a file exists, is writable, or whatever.
Command line arguments can be broken into two distinct types: options and values that are associated with these options. In windows, options often start with a / but sometimes with a -, but in unix they almost universally start with a -. For this module options start with a -. We support two types of options: the short single dashed options and the long double dashed options.
The difference between these two is that with this module the short options can be combined into a single option, but the long options can not. For example, most of us will be familiar with the tar -xvf file command which can also be expressed as -x -v -f file. Long options can not be combined this way, so --help for example must always stand by itself.
The input template expects the option names as its keys. For instance if you were expecting -xv --hello as possible command line options, the keys for your template hash would be -x, -v, and --hello.
Download (0.019MB)
Added: 2006-10-28 License: Perl Artistic License Price:
1091 downloads
Options Toolbar Button 0.4 for Firefox
Options Toolbar Button provides a button which opens the options menu. more>>
Options Toolbar Button provides a button which opens the options menu.
This is a small devision of Toolbar Buttons and one of the most popular on my web site.
This one adds a toolbar button to open Options.
You must add the button to your toolbar by right clicking the toolbar selecting "customize" and dragging this new button to the toolbar.
<<lessThis is a small devision of Toolbar Buttons and one of the most popular on my web site.
This one adds a toolbar button to open Options.
You must add the button to your toolbar by right clicking the toolbar selecting "customize" and dragging this new button to the toolbar.
Download (0.007MB)
Added: 2007-07-11 License: MPL (Mozilla Public License) Price:
839 downloads
Getopt::Popt 0.02
Getopt::Popt is a Perl interface to the popt(3) library. more>>
Getopt::Popt is a Perl interface to the popt(3) library.
SYNOPSIS
use Getopt::Popt qw(:all);
# setup the options array
push @options,new Getopt::Popt::Option(
longName => "long",
shortName => "l",
argInfo => POPT_ARG_STRING,
arg => $qux,
val => $val);
# or, if youre lazy, have Getopt::Popt automagically do the new()
push @options, { shortName => s,
argInfo => POPT_ARG_NONE,
arg => $quux,
val => s
};
# "val"s can be a single character or an integer:
push @options, { longName => xor,
argInfo => POPT_ARG_VAL | POPT_ARGFLAG_XOR,
arg => $quuux,
val => 0xbadf00d # integer
},
Enable automatic help/usage messages (--help or --usage):
push @options, POPT_AUTOHELP;
Create a new popt context:
$popt = new Getopt::Popt(name => $alias_name,
argv => @ARGV,
options => @options,
flags => $flags);
Setup option aliases:
# load some aliases
$popt->readDefaultConfig();
$popt->readConfigFile("/path/to/aliases");
# add your own alias
$alias = new Getopt::Popt::Alias(longName => "taco",
argv => [qw(--flavored --kisses)]);
$popt->addAlias($alias, $alias_flags);
Load options as you would in C:
# loop through the options, using the popt C way:
while(($rc = $popt->getNextOpt()) > 0) {
...
# one way to get the arg val
$bork = $popt->getOptArg();
...
# stuff some args
$popt->stuffArgs(qw(-q -u -x));
...
# start over
$popt->resetContext();
...
}
And handle errors as you would in C:
$errstr = $popt->strerror($rc);
$badopt = $popt->badOption($rc,$badopt_flags);
Or try the new perly way:
eval {
while(defined($val = $popt->getNextOptChar())) {
^^^^-- note!
# $val is a Scalar::Util::dualvar:
if($val eq "c") { # getArgs();
<<lessSYNOPSIS
use Getopt::Popt qw(:all);
# setup the options array
push @options,new Getopt::Popt::Option(
longName => "long",
shortName => "l",
argInfo => POPT_ARG_STRING,
arg => $qux,
val => $val);
# or, if youre lazy, have Getopt::Popt automagically do the new()
push @options, { shortName => s,
argInfo => POPT_ARG_NONE,
arg => $quux,
val => s
};
# "val"s can be a single character or an integer:
push @options, { longName => xor,
argInfo => POPT_ARG_VAL | POPT_ARGFLAG_XOR,
arg => $quuux,
val => 0xbadf00d # integer
},
Enable automatic help/usage messages (--help or --usage):
push @options, POPT_AUTOHELP;
Create a new popt context:
$popt = new Getopt::Popt(name => $alias_name,
argv => @ARGV,
options => @options,
flags => $flags);
Setup option aliases:
# load some aliases
$popt->readDefaultConfig();
$popt->readConfigFile("/path/to/aliases");
# add your own alias
$alias = new Getopt::Popt::Alias(longName => "taco",
argv => [qw(--flavored --kisses)]);
$popt->addAlias($alias, $alias_flags);
Load options as you would in C:
# loop through the options, using the popt C way:
while(($rc = $popt->getNextOpt()) > 0) {
...
# one way to get the arg val
$bork = $popt->getOptArg();
...
# stuff some args
$popt->stuffArgs(qw(-q -u -x));
...
# start over
$popt->resetContext();
...
}
And handle errors as you would in C:
$errstr = $popt->strerror($rc);
$badopt = $popt->badOption($rc,$badopt_flags);
Or try the new perly way:
eval {
while(defined($val = $popt->getNextOptChar())) {
^^^^-- note!
# $val is a Scalar::Util::dualvar:
if($val eq "c") { # getArgs();
Download (0.021MB)
Added: 2007-03-07 License: Perl Artistic License Price:
963 downloads
Tk::CmdLine
Tk::CmdLine contains process standard X11 command line options and set initial resources. more>>
Tk::CmdLine contains process standard X11 command line options and set initial resources.
SYNOPSIS
Tk::CmdLine::SetArguments([@argument]);
my $value = Tk::CmdLine::cget([$option]);
Tk::CmdLine::SetResources((@resource | $resource) [, $priority]);
Tk::CmdLine::LoadResources(
[ -symbol => $symbol ]
[ -file => $fileSpec ]
[ -priority => $priority ]
[ -echo => $fileHandle ] );
Process standard X11 command line options and set initial resources.
The X11R5 man page for X11 says: "Most X programs attempt to use the same names for command line options and arguments. All applications written with the X Toolkit Intrinsics automatically accept the following options: ...". This module processes these command line options for perl/Tk applications using the SetArguments function.
This module can optionally be used to load initial resources explicitly via function SetResources, or from specified files (default: the standard X11 application-specific resource files) via function LoadResources.
<<lessSYNOPSIS
Tk::CmdLine::SetArguments([@argument]);
my $value = Tk::CmdLine::cget([$option]);
Tk::CmdLine::SetResources((@resource | $resource) [, $priority]);
Tk::CmdLine::LoadResources(
[ -symbol => $symbol ]
[ -file => $fileSpec ]
[ -priority => $priority ]
[ -echo => $fileHandle ] );
Process standard X11 command line options and set initial resources.
The X11R5 man page for X11 says: "Most X programs attempt to use the same names for command line options and arguments. All applications written with the X Toolkit Intrinsics automatically accept the following options: ...". This module processes these command line options for perl/Tk applications using the SetArguments function.
This module can optionally be used to load initial resources explicitly via function SetResources, or from specified files (default: the standard X11 application-specific resource files) via function LoadResources.
Download (5.7MB)
Added: 2007-08-21 License: Perl Artistic License Price:
794 downloads
Java GetOpt Library 1.0.1
The Java GetOpt library implements option parsing and a common online help behaviour. more>>
Java GetOpt library implements option parsing and a common online help behaviour, including an XML format for topics, command, and options (which can be queried with --help --xml) and support for online browsing with --help --browse.
Whats New in This Release:
ï¿1⁄2 The getopt library can now choose the pluggable look and feel of an application with a standard option "--plaf".
ï¿1⁄2 A new file of default options (.prefs/default.options) can specify a set of common default options for all programs using the getopt library, such as the PLAF.
<<lessWhats New in This Release:
ï¿1⁄2 The getopt library can now choose the pluggable look and feel of an application with a standard option "--plaf".
ï¿1⁄2 A new file of default options (.prefs/default.options) can specify a set of common default options for all programs using the getopt library, such as the PLAF.
Download (0.20MB)
Added: 2005-12-17 License: GPL (GNU General Public License) Price:
1414 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above r options search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed