Main > Free Download Search >

Free argument software for linux

argument

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 983
Automated Argument Helper 1.2.2

Automated Argument Helper 1.2.2


Aargh is a code generator, written in C++ and licensed under the terms of the GNU General Public License (GPL). more>>
Aargh is a code generator, written in C++ and licensed under the terms of the GNU General Public License (GPL). It generates C++ code to parse a command line, using the getopt() facility available in UNIX and UNIX-like environments.
Automated Argument Helper project supports command-line options with integer arguments, string arguments, and no arguments. The generated code is commented and carefully indented for readability.
Its nice to have lots of command line options, but its a real pain to code for them.
Not that its difficult. Its just tedious, time-consuming, error prone, and no fun. I used to wince at the thought of adding command line options.
Not any more. All I have to do is define the options I want in a small XML file, and run it through aargh. Instantly I have C++ source code that I can compile and link into my program.
If I need to add another option, or otherwise change the rules, I can edit the XML and regenerate the code. No muss, no fuss. Now I can spend more time on the interesting parts of the project.
To use aargh, write an XML file to describe the options you want. When aargh reads the file, it generates two C++ files.
One file is a header that declares a class to represent the options. By default this class is named "Opts," but you can specify a different name. The other file is the implementation of Opts, or whatever you decide to call it. The Opts class provides member functions to parse the command line and return the results.
In your own code, declare an instance of Opts and call Opts::get() to parse the command line, passing it the argc and argv arguments from main(). Opts::get() returns zero if the command line follows the rules that you have outlined in the XML file, or non-zero otherwise. If the parsing is successful, the Opts object stores the results and makes them available to your program by a series of accessor functions.
Main features:
- You can enforce upper and/or lower limits on the number of non-option arguments.
- You can distinguish between options that take arguments and those that dont.
- You can specify that an option is required.
- You can require that the argument to an option be a non-negative integer.
- For an integer argument you can enforce upper and/or lower limits.
- For a string argument you can enforce upper and/or lower limits on the string length.
- For a string argument you can call a function of your own to validate the argument.
- You can allow multiple occurrences of the same option. In that case the generated code builds an STL vector to hold the arguments. By default the generated software allows only one occurrence of any given option.
Enhancements:
- You can now specify the location of the generated header file independently of its name.
- This feature may make it easier to incorporate aargh into complex build environments.
<<less
Download (0.16MB)
Added: 2006-04-14 License: GPL (GNU General Public License) Price:
1288 downloads
Arg_parser 1.0

Arg_parser 1.0


Arg_parser is an argument parser tht follows POSIX and GNU conventions for command line arguments. more>>
Arg_parser is an argument parser that follows POSIX and GNU conventions for command line arguments. Arg_parser is implemented as a C++ class, and is simpler, easier to use, and safer that "getopt_long".
Arg_parser does not modify its arguments, nor uses any global variables. So you may create more than one parser in your program if you need or want to. Arg_parser can also parse options from configuration files.
To use Arg_parser in your own programs simply copy the files "arg_parser.h" and "arg_parser.cc" in your sorce tree. See also the file "main.cc" for an example of use.
Enhancements:
- The license has been updated to GPL version 3 or later.
<<less
Download (0.017MB)
Added: 2007-07-01 License: GPL (GNU General Public License) Price:
845 downloads
Jaggregate 3.2

Jaggregate 3.2


Jaggregate is a Java collections library that is modeled after the ANSI Smalltalk collection protocols. more>>
Jaggregate is a Java collections library that is modeled after the ANSI Smalltalk collection protocols.
It only works with J2SE 5.
Enhancements:
- A bug with SortedCollections produced by the zero-argument Collection.toSortedCollection() was fixed.
- Such collections could not be serialized, because the Comparator they use was not itself Serializable.
- This has been remedied.
- *From and *With methods were added to Dictionary and IdentityDictionary, despite compiler warnings about generic array creation.
<<less
Download (0.54MB)
Added: 2007-03-26 License: Other/Proprietary License Price:
945 downloads
Roman 1.20

Roman 1.20


Roman is a Perl module for conversion between Roman and Arabic numerals. more>>
Roman is a Perl module for conversion between Roman and Arabic numerals.

SYNOPSIS

use Roman;

$arabic = arabic($roman) if isroman($roman);
$roman = Roman($arabic);
$roman = roman($arabic);

This package provides some functions which help conversion of numeric notation between Roman and Arabic.

Functions

isroman

Tests if argument is valid roman number

arabic

roman => arabic

Roman

arabic => roman

roman

Same as Roman, lowercase

<<less
Download (0.003MB)
Added: 2007-05-21 License: Perl Artistic License Price:
886 downloads
fget 0.4.0

fget 0.4.0


fget supports downloading a single URL (the first argument on the command line) from an FTP or HTTP server. more>>
fget supports downloading a single URL (the first argument on the command line) from an FTP or HTTP server. fget supports IPv4 and IPv6 (the IPv6 URL format for IP numbers is http://[::1]:80/file.tar.gz) transport. You can set the INTERFACE environment variable to the name of the network interface ("eth0") to use IPv6 link-local addresses. This program can acces URLs with username and password like http://bob:secret@download.com/file.tar.gz
Files are always written to stdout.

fget is meant for boot and rescue disks, so small size is the most important feature. It can be linked against diet libc and you can disable the built-in DNS routines to make the binary even smaller. On my x86-linux box, the diet libc statically linked fget binary without DNS weighs about 24k (update! dietlibc 0.5 reduces the size to 13k!)

<<less
Download (0.016MB)
Added: 2006-06-13 License: GPL (GNU General Public License) Price:
1242 downloads
Markup::MatchTree 1.0.0

Markup::MatchTree 1.0.0


Markup::MatchTree is a Perl module for building trees to be compared to Markup::Trees. more>>
Markup::MatchTree is a Perl module for building trees to be compared to Markup::Trees.

SYNOPSIS

use Markup::MatchTree;

my $match_tree = Markup::MatchTree->new( no_squash_whitespace => @same_as_I_used_for_Markup__Tree);
$match_tree->parse_file (http://localhost/site_template.xml);

Most likely you wont need to use this module explicitly unless you are doing some custom matching/parsing/extracting. Mainly this will be used by the upcoming Markup::Content module.

See Markup::Tree for a description of the methods. The only difference is MatchTree dosent accpet no_indent as an argument. no_squash_whitespace should be the same value that was used for Markup::Tree.

<<less
Download (0.003MB)
Added: 2006-09-21 License: Perl Artistic License Price:
1128 downloads
AviUtils 2.0

AviUtils 2.0


AviUtils is a little tool for lazy peoples, to visually work with avi files. more>>
AviUtils is a little tool for lazy peoples, to visually work with avi files. It can change fourcc and can accept a command line argument: filepath of the avi.

Designed for seamless migration from win apps Gspot and Fourcc changer .

Aviutils2 is better graphics single tab version, but is experimental because of the string functions. Tested working only in Gentoo/ KDE3.5.0 .

Instructions: Choose your version (AviUtils or AviUtils2) and put the content of the choosed folder into ~/.kde/share/apps/konqueror/servicemenus to have it as service-menu for avi files.

<<less
Download (0.020MB)
Added: 2006-02-05 License: GPL (GNU General Public License) Price:
1375 downloads
pam_realm 0.2

pam_realm 0.2


pam_realm checks the user name against being of form user@realm, where realm is supplied as an argument. more>>
pam_realm checks the user name against being of form user@realm, where realm is supplied as an argument. In case the check succeeds, this @realm part is stripped, and the control is passed to the following module.

OPTIONS:

debug

does not do anytning at the moment

realm=realm

specify the realm to check against

allowbare

also allows the user name to be of form just user without any @realm

nostrip

in certain cases, it may be of use to just check if the user name is of proper form

EXAMPLE

auth requisite pam_realm.so realm=mail.example.com
auth require pam_unix.so
<<less
Download (0.002MB)
Added: 2006-04-18 License: GPL (GNU General Public License) Price:
1284 downloads
Getargs::Long 1.1001

Getargs::Long 1.1001


Getargs::Long is a Perl module with named subroutine arguments, with optional type checking. more>>
Getargs::Long is a Perl module with named subroutine arguments, with optional type checking.

SYNOPSIS

use Getargs::Long; # case sensitive
use Getargs::Long qw(ignorecase); # case insensitive

# Simple, args mandatory
my ($val, $other) = getargs(@_, qw(val other));

# Simple, args optional (in [] means optional)
my ($val, $other) = getargs(@_, [qw(val other)]);

# Simple with typechecking, args mandatory
my ($val, $other) = getargs(@_, qw(val=Class::X other=ARRAY));

# Simple with typechecking, args optional
my ($val, $other) = getargs(@_, [qw(val=Class::X other=ARRAY)]);

# Faster version, building dedicated argument parsing routine
my ($val, $other) = cgetargs(@_, qw(val other));

# Other cases, use full specs:
my ($x, $y, $z, $a, $b, $c) = xgetargs(@_,

# Non-mandatory, defaults to undef unless specified otherwise
x => [i], # integer, no default
y => [ARRAY, [a, b]], # Has a default
z => [], # No typecheck, can be anything

# Mandatory arguments
a => i, # integer (scalar)
b => TYPE, # TYPE or any heir of TYPE
c => undef, # unspecified type but mandatory
);

# Extract remaining unparsed args in @extra
my ($val, $other, @extra) = getargs(@_, { -strict => 0 }, qw(val other));

# Alter behaviour of the getargs() routines via switches in hashref
my ($val, $other) = getargs(@_,
{
-strict => 1, # unknown switches are fatal
-ignorecase => 1, # override packages global
-inplace => 1, # edit @_ inplace: remove parsed args
-extra => 0, # suppress return of extra arguments
},
qw(val other)
);

The Getargs::Long module allows usage of named parameters in function calls, along with optional argument type-checking. It provides an easy way to get at the parameters within the routine, and yields concise descriptions for the common cases of all-mandatory and all-optional parameter lists.

The validation of arguments can be done by a structure-driven routine getargs() which is fine for infrequently called routines (but should be slower), or via a dedicated routine created and compiled on the fly the fist time it is needed, by using the cgetargs() family (expected to be faster).

The Log::Agent module is used to report errors, which leaves to the application the choice of the final logging method: to a file, to STDERR, or to syslog.

<<less
Download (0.040MB)
Added: 2006-09-26 License: Perl Artistic License Price:
1123 downloads
yatesParse 0.2

yatesParse 0.2


yatesParse is a C++ library for parsing and handling command line arguments. more>>
yatesParse is a C++ library for parsing and handling command line arguments. It can handle normal arguments (foo --help, foo -h, etc) and arguments with values (foo --file evilplans.txt, foo -f evilplans.txt, etc).

A small example program using yatesParse is available in SVN. Complete Doxygen docs are available in both the Docs section of the yatesParse website, and in SVN.

A brief explanation of how yatesParse works:

Command line arguments are added by calling the add_option function, the user must specify the option to add and the address of the function to call when that argument has been detected.

When the parsing function detects an argument, a function of the users choice is called and, if the argument takes a value, the value is passed to the function.

yatesParse can also generate output for --help from the options added and program information that the user specifies.
<<less
Download (0.095MB)
Added: 2005-10-11 License: GPL (GNU General Public License) Price:
1473 downloads
Sub::ArgShortcut 1.01

Sub::ArgShortcut 1.01


Sub::ArgShortcut is a Perl module with writing functions that use default arguments. more>>
Sub::ArgShortcut is a Perl module with writing functions that use default arguments.

SYNOPSIS

use Sub::ArgShortcut::Attr;

sub mychomp :ArgShortcut { chomp @_ }

while ( ) {
# make a chomped copy of $_ without modifying it
my $chomped_line = mychomp;

# or, modify $_ in place
mychomp;

# ...
}

This module encapsulates the logic required for functions that assume $_ as their argument when called with an empty argument list, and which modify their arguments in void context but return modified copies in any other context. You only need to write code which modifies the elements of @_ in-place.
argshortcut(&)

This function takes a code reference as input, wraps a function around it and returns a reference to that function. The code that is passed in should modify the values in @_ in whatever fashion desired. The function from the synopsis could therefore also be written like this:

use Sub::ArgShortcut;
my $mychomp = argshortcut { chomp @_ };

This function is exported by default.

Sub::ArgShortcut::Attr and :ArgShortcut - The attribute interface
Instead of using argshortcut to wrap a code reference, you can use an Attribute::Handler-based interface to add Sub::ArgShortcut functionality to regular subs. Simply use Sub::Shortcut::Attr instead of Sub::Shortcut, then request its behaviour using the :ArgShortcut attribute on functions:
sub mychomp :ArgShortcut { chomp @_ }

my $mychomp = sub :ArgShortcut { chomp @_ };

<<less
Download (0.005MB)
Added: 2007-05-03 License: Perl Artistic License Price:
904 downloads
GeoTypes 0.6.0

GeoTypes 0.6.0


GeoTypes is a Python library that implements both the OpenGIS/PostGIS and standard PostgreSQL geometry types. more>>
GeoTypes is a Python library that implements both the OpenGIS/PostGIS and standard PostgreSQL geometry types. GeoTypes integrates with the psycopg Python/PostgreSQL interface.
It provides implementations of all of the OpenGIS/PostGIS classes, except (x,y,m) and (x,y,z,m). It currently supports the EWKB, HEXEWKB, WKB, and WKT formats.
Enhancements:
- Point and Box constructor now accept several argument types
- SRID optional in WKTParser.parseGeometry
- minor typo corrections
- added joinBoxes()
<<less
Download (0.042MB)
Added: 2006-06-14 License: LGPL (GNU Lesser General Public License) Price:
1231 downloads
Verilog::CodeGen 0.9.4

Verilog::CodeGen 0.9.4


Verilog::CodeGen module is a Verilog code generator. more>>
Verilog::CodeGen module is a Verilog code generator.

SYNOPSIS

use Verilog::CodeGen;

mkdir DeviceLibs/Objects/YourDesign, 0755;
chdir DeviceLibs/Objects/YourDesign;

# if the directory YourDesign exists, the second argument can be omitted
# create YourModule.pl in YourDesign
&create_template_file(YourModule,YourDesign);

# create a device library for testing in DeviceLibs/Objects/DeviceLibs
&make_module(YourModule,YourDesign);

# create the final device library in DeviceLibs (once YourModule code is clean)
&make_module(,YourDesign);

<<less
Download (0.018MB)
Added: 2007-08-20 License: Perl Artistic License Price:
800 downloads
Class::Multimethods::Pure 0.13

Class::Multimethods::Pure 0.13


Class::Multimethods::Pure is a Perl module that contains a method-ordered multimethod dispatch. more>>
Class::Multimethods::Pure is a Perl module that contains a method-ordered multimethod dispatch.

SYNOPSIS

use Class::Multimethods::Pure;

package A;
sub magic { rand() > 0.5 }
package B;
use base A;
package C;
use base A;

BEGIN {
multi foo => (A, A) => sub {
"Generic catch-all";
};

multi foo => (A, B) => sub {
"More specific";
};

multi foo => (subtype(A, sub { $_[0]->magic }), A) => sub {
"This gets called half the time instead of catch-all";
};

multi foo => (any(B, C), A) => sub {
"Accepts B or C as the first argument, but not A"
};
}

<<less
Download (0.015MB)
Added: 2007-07-05 License: Perl Artistic License Price:
843 downloads
Libopennet 0.9.9

Libopennet 0.9.9


Libopennet allows developers to open_net() files. more>>
Libopennet is a library that provides the function open_net() which accepts the same parameters as the open() system call, but the pathname argument can be an FTP or HTTP URL.
Libopennet project allows you to open_net() files the same way you open() them now.
Enhancements:
- fseek_net() support was improved.
- ftell_net(), ftello_net(), fseeko_net(), and setvbuf_net() were added.
<<less
Download (0.10MB)
Added: 2006-12-18 License: GPL (GNU General Public License) Price:
1040 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5