Main > Free Download Search >

Free option software for linux

option

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 3099
Options.pm 1.5

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.

<<less
Download (0.007MB)
Added: 2007-07-13 License: Perl Artistic License Price:
837 downloads
options 0.4pre5

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)
<<less
Download (0.30MB)
Added: 2005-10-06 License: GPL (GNU General Public License) Price:
1478 downloads
App::Options 1.02

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.

<<less
Download (0.033MB)
Added: 2007-02-20 License: Perl Artistic License Price:
977 downloads
Tk::Optionmenu 804.027

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;

<<less
Download (5.7MB)
Added: 2007-08-21 License: Perl Artistic License Price:
794 downloads
Tab Clicking Options 0.6.8

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
<<less
Download (0.022MB)
Added: 2007-04-28 License: MPL (Mozilla Public License) Price:
911 downloads
Options Toolbar Button 0.4 for Firefox

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.

<<less
Download (0.007MB)
Added: 2007-07-11 License: MPL (Mozilla Public License) Price:
839 downloads
htmloptim 1.2

htmloptim 1.2


htmloptim reduces the size of an HTML file by removing unnecessary characters like spaces, tabs, line feeds, and blank lines. more>>
htmloptim project reduces the size of an HTML file by removing unnecessary characters like spaces, tabs, line feeds, and blank lines.
Enhancements:
- added the -p option (remove trailing spaces and tabs)
- added skipping of more < pre > like tags: < listing > < plaintext > < xmp >
- added description of the script
<<less
Download (0.006MB)
Added: 2006-08-11 License: GPL (GNU General Public License) Price:
1170 downloads
Getopt::OO 0.07

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.

<<less
Download (0.019MB)
Added: 2006-10-28 License: Perl Artistic License Price:
1091 downloads
Tk::CmdLine

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.

<<less
Download (5.7MB)
Added: 2007-08-21 License: Perl Artistic License Price:
794 downloads
mirmon 1.38

mirmon 1.38


mirmon monitor the state of mirrors. more>>
mirmon project monitors the state of mirrors.
Every hour the root site writes a fresh timestamp somewhere in the archive; mirror sites copy this timestamp when they update the mirror archive. Mirmon periodically retrieves these timestamps from the mirror sites. It generates a html report and a flat state file.
Mirmons actions and report are directed by a config file. There are many configuration parameters, but most have acceptable defaults. Only a few project specific items need to be specified. Once configured, mirmon can be run by cron every hour.
Mirror sites are probed at certain (user defined) intervals (default every 4 hours). Sites that are (temporarily) unreachable are probed more often (by default hourly) until a probe is successful.
The state file has a simple format and can be used for other administrative purposes (mailing admins of stale mirrors, directing users to fresh mirrors, etc).
Options:
option v : be verbose
option q : be quiet
option t : set timeout [ default 300 ] ;
option get : all : probe all sites
: update : probe a selection of the sites
option c : configuration file ; default list : ./mirmon.conf $HOME/.mirmon.conf etc/mirmon.conf
Enhancements:
- Some averages were added to the reports that mirmon generates.
<<less
Download (0.025MB)
Added: 2007-08-19 License: GPL (GNU General Public License) Price:
796 downloads
PBButtonsd 0.8.1a

PBButtonsd 0.8.1a


PBButtons is a daemon to handle special hardware on the Apple iBook/PowerBook/TiBook. more>>
PBButtons is a daemon to handle special hardware on the Apple iBook/PowerBook/TiBook. It controls the display brightness, the sound volume, mutes the sound, changes the trackpad mode, puts the machine to sleep, or ejects the CDROM on command.
PBButtonsd project also provides basic power management features. An included client gives the user visual feedback about all actions with nice little popup windows.
Enhancements:
- remove hdparm option -p because the option does not do what it is supposed to and anyway the kernel does a good controlling the IDE speed settings.
<<less
Download (0.39MB)
Added: 2007-07-29 License: GPL (GNU General Public License) Price:
817 downloads
Getopt::Lucid 0.16

Getopt::Lucid 0.16


Getopt::Lucid is a clear, readable syntax for command line processing. more>>
Getopt::Lucid is a clear, readable syntax for command line processing.
SYNOPSIS
use Getopt::Lucid qw( :all );
# basic option specifications with aliases
@specs = (
Switch("version|V"),
Counter("verbose|v"),
Param("config|C"),
List("lib|l|I"),
Keypair("define"),
Switch("help|h")
);
$opt = Getopt::Lucid->getopt( @specs );
$verbosity = $opt->get_verbose;
@libs = $opt->get_lib;
%defs = $opt->get_define;
%all_options = $opt->options;
# advanced option specifications
@adv_spec = (
Param("input")->required, # required
Param("mode")->default("tcp"), # defaults
Param("host")->needs("port"), # dependencies
Param("port", qr/d+/ )->required, # regex validation
Param("config", sub { -r } ), # custom validation
Param("help")->anycase, # case insensitivity
);
# example with a config file
use Config::Std;
if ( -r $opt->get_config ) {
read_config( $opt->get_config() => my %config_hash );
$opt->merge_defaults( $config_hash{} );
}
The goal of this module is providing good code readability and clarity of intent for command-line option processing. While readability is a subjective standard, Getopt::Lucid relies on a more verbose, plain-English option specification as compared against the more symbolic approach of Getopt::Long.
Main features:
- Five option types: switches, counters, parameters, lists, and keypairs
- Three option styles: long, short (including bundled), and bare (without dashes)
- Specification of defaults, required options and option dependencies
- Validation of options with regexes or subroutines
- Negation of options on the command line
- Support for parsing any array, not just the default @ARGV
- Incorporation of external defaults (e.g. from a config file) with user control of precedence
<<less
Download (0.039MB)
Added: 2007-01-16 License: Perl Artistic License Price:
1012 downloads
Getopt::Simple 1.48

Getopt::Simple 1.48


Getopt::Simple is a Perl module that provides a simple wrapper around Getopt::Long. more>>
Getopt::Simple is a Perl module that provides a simple wrapper around Getopt::Long.

SYNOPSIS

use Getopt::Simple;

# Or ...
# use Getopt::Simple qw($switch);

my($options) =
{
help =>
{
type => ,
env => -,
default => ,
# verbose => , # Not needed on every key.
order => 1,
},
username =>
{
type => =s, # As per Getopt::Long.
env => $USER, # Help text.
default => $ENV{USER} || RonSavage, # In case $USER is undef.
verbose => Specify the username on the remote machine,
order => 3, # Help text sort order.
},
password =>
{
type => =s,
env => -,
default => password,
verbose => Specify the password on the remote machine,
order => 4,
},
};

my($option) = Getopt::Simple -> new();

if (! $option -> getOptions($options, "Usage: testSimple.pl [options]") )
{
exit(-1); # Failure.
}

print "username: $$option{switch}{username}. n";
print "password: $$option{switch}{password}. n";

# Or, after use Getopt::Simple qw($switch); ...
# print "username: $$switch{username}. n";
# print "password: $$switch{password}. n";

Getopt::Simple is a pure Perl module.

The Getopt::Simple module provides a simple way of specifying:

Command line switches

Type information for switch values

Default values for the switches

Help text per switch

<<less
Download (0.008MB)
Added: 2006-11-03 License: Perl Artistic License Price:
1085 downloads
Tiny.pl 0.3.1

Tiny.pl 0.3.1


Tiny.pl is a Firefox extension that allows to shorten a current page URL or any Link on a webpage with a single click. more>>
Tiny.pl is a Firefox extension that allows to shorten a current page URL or any Link on a webpage by right clicking and choosing an option from pop-up menu.

<<less
Download (0.005MB)
Added: 2007-05-10 License: MPL (Mozilla Public License) Price:
899 downloads
AutoOpts 27.6

AutoOpts 27.6


AutoOpts is an integrated part of AutoGen. more>>
AutoOpts 25:1 is included with AutoGen 5.7.1. AutoOpts project is a very powerful command line option parser consisting of a set of AutoGen templates and a run time library that nearly eliminates the hassle of parsing and documenting command line options. This package allows you to specify several program attributes, up to 100 option types and many attributes for each option.
Using your programs option definitions, AutoGen will expand the AutoOpts templates into two C source files and, optionally, a man page document and a tex-info ``invoking document section. The header and code files constitute all the information the AutoOpts library needs to parse and handle the command line, environment variables and initialization file (rc file) options. When your program runs, the AutoOpts library will then interpret these compiled data.
Additionally, if you wish to use ``getopt_long(3GNU) or getopt(3C) to parse the options instead of AutoOpts libopts library, you may do so. A template (getopt.tpl) is distributed with AutoOpts that will take restricted AutoOpts option definitions and produce the parsing loop that calls either ``getopt(3C) or ``getopt_long(3GNU). (Which depends on whether long options are enabled in your description.) Be aware, though, that it is significantly crippled when compared with the full set of AutoOpts Features
AutoOpts is available either under the terms of the Library GNU Public License, or, at your option, the terms of the advertising-clause-free BSD license.
Enhancements:
- Configuration file data for options with compound, structured argument values were not parsed correctly. This has been fixed.
<<less
Download (0.48MB)
Added: 2007-01-28 License: GPL (GNU General Public License) Price:
1000 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5