Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.547.502 Times

Getopt::OO 0.07

  Date Added: November 14, 2010  |  Visits: 554


Report Broken Link
Printer Friendly Version

Product Homepage
Download (76 downloads)

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..

Requirements: No special requirements
Platforms: Linux
Keyword: Command Command Line Command Line Arguments File Getoptoo Help Libraries Line Object Oriented Oo Options Programming Values
Users rating: 0/10

License: Freeware Size: 19.46 KB
More Reviews or Write Review

Libraries  -  CVS Perl library 0.07
CVS Perl library is a Perl module which is a wrapper around the CVS command with an object-oriented interface. Installation: To install this module type the following: perl Makefile.PL make make test make install.
24.58 KB  
Libraries  -  File::Basename::Object 0.01
File::Basename::Object is a Perl module with object-oriented syntax sugar for File::Basename. SYNOPSIS my $file = File::Basename::Object->new("/path/to/a/file.html", ".htm", ".html"); if(open(my $fh, <, $file)) { print "Now reading ",...
4.1 KB  
Multimedia & Graphics  -  Perspolis Command-Line Calculator New
Perspolis Command-Line Calculator is, just like the name suggests a small, simple, command-line based application specially designed to help you with your basic math calculations. If you are looking for a tool that is both tiny and easy to use to...
FTP Clients  -  QuFTP 1.0.7
QuFTP is a command line ftp client for Linux. It supports the selection of multiple files for upload and download, which are transfered with one command. I wrote this client out of because i didnt saw any reasonable FTP client for linux. I can...
93.18 KB  
Libraries  -  libtecla 1.6.1
The tecla library provides UNIX and LINUX programs with interactive command line editing facilities, similar to those of the unix tcsh shell. In addition to simple command-line editing, it supports recall of previously entered command lines, TAB...
512 KB  
Shell & Desktop  -  d command 5.4
The d command runs a command in the background and redirects its output to a file. The output file is annotated with start and end time, the actual command used, cwd, host, etc. You can ask the d command to extract the last command from the...
8.19 KB  
Networking Tools  -  Statistical Traffic Analysis Kit 1.0b2
Statistical Traffic Analysis Kit is a set of command-line traffic analysis tools, designed to help a network administrator to see what is happening at a router at the moment. Unlike tcpdump (1), the stak set uses statistical and stream-oriented...
69.63 KB  
Backup Utilities  -  Backup Software 3.01
Backup Software based on the XCOPY command of Windows command prompt; software, source code, PDF, text tutorials included. I created a special program to back up everything that's important on a power-user's PC. I created also a batch file to do...
326.69 KB  
File Utilities  -  tail for Windows 1.0
tail for Windows is 100% Freeware UNIX/Linux like tail DOS Command for Windows. It can be used to display last lines of a file and trace/monitor file's change. You can also intercept a file from specified line no. into another file by using the...
File Cataloguers  -  UUMerge Freeware Edition 1.00
uuMerge Freeware Edition is a command line utility that can be used either to combine multiple text files into a single text file with a separator line between the contents of each file; or alternatively to process a 'merged' file (...
79 KB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB