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 30.046.861 Times

Getopt::Tiny 1.02

  Date Added: September 15, 2010  |  Visits: 655

Getopt::Tiny

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)

Getopt::Tiny is yet another command line argument parsing module. SYNOPSIS use Getopt::Tiny; my $arg = default value; my @list; my %hash; my $flag; my %set; # begin usage info my (%flags) = ( argx => $arg, # set a parameter listx => @list, # fill in a list hashx => %hash, # set key/value pairs ); my (%switches) = ( flagx => $flag, # on or off } # end usage info getopt(@ARGV, %flags, %switches, $what_comes_after); Getopt::Tiny::usage(__FILE__, %flags, %switches, files); or use Getopt::Tiny; %flags = ... %switches = ... getopt() Getopt::Tiny::usage(); Getopt::Tiny is yet another argument parsing module. The results of the argument parsing are stored by using references that were provided to getopt(). Usage information is automatically generated. Getopt::Tiny expects all arguments to be switches -- no trailing list of files. Getopt::Tiny can either call an existing usage() function or it can use its own builtin one. It trys to use the existing one by default. If that fails, it will use its own. It figures out how to describe things by reading the file where call to getopt() originated. In the file where getopt is called, the following two lines must appear exactly as written here: # begin usage info # end usage info Between these two lines, lines that match the pattern of: someflag => ... # a description will be noticed and used to document each flag individually. The usage() function of Getopt::Tiny can be called on its own. It can either have its arguments given to it explicitly or it can default them like getopt(). If a usage function is provided, it will be called with one parameter: the argument that didnt parse. Getopt::Tiny can be used in situation where it is expected to parse the entire command line and in situations where there will be command line args left over. When Getopt::Tiny is expected to parse the whole command line, do not include a forth argument to getopt(). When it is expected that there will be stuff left over, pass a description of what should be left over as the forth argument to getopt()..

Requirements: No special requirements
Platforms: Linux
Keyword: Argument Command Command Line Command Line Argument Getopt Getopttiny Libraries Line Parsing Programming Usage Will Be Yet Another
Users rating: 0/10

License: Freeware Size: 5.12 KB
GETOPT::TINY RELATED
Games  -  Hot ham Tower 1.0
"Hot ham Tower" is a fun game loved by all age players. (Especially for kids) This is a game of stacking pancakes. How to play Stack the Hot ham in a single vertical line. Try to stack in a straight line to maintain good...
24.2 MB  
Libraries  -  Getopt::Declare 1.11
Getopt::Declare is a Perl module with Declaratively Expressed Command-Line Arguments via Regular Expressions. SYNOPSIS use Getopt::Declare; $args = Getopt::Declare->new($specification_string, $optional_source); # or: use Getopt::Declare...
35.84 KB  
Utilities  -  Arbitrary Command Output Colourer 0.7.1
acoc is a regular-expression based colour formatter for programs that display output on the command-line. It works as a wrapper around the target program, executing it and capturing the stdout stream. Optionally, stderr can be redirected to...
40.96 KB  
Libraries  -  Getopt::Lucid 0.16
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"),...
39.94 KB  
Libraries  -  Getopt::OO 0.07
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...
19.46 KB  
3D Graphic Tools  -  ppsei 0.1
ppsei short from PPS Extract Images is a simple command line program, which tries to extract images from Microsoft PowerPoint documents (PPS/PPT). Because i get a lot of mails with attached PPS/PPT in, containing some nice images (about...
16.38 KB  
Libraries  -  text-vimcolor 0.11
text-vimcolor is a command-line program to syntax color a file in HTML, XML or PDF. SYNOPSIS $ text-vimcolor --format html --full-page FILENAME > OUTPUT.html $ text-vimcolor --format xml FILENAME > OUTPUT.xml $ text-vimcolor --format pdf...
20.48 KB  
Libraries  -  Sys::Manage::Cmd 0.56
Sys::Manage::Cmd - Systems management command volley. SYNOPSIS Command line script use Sys::Manage::Cmd; my $s =Sys::Manage::Cmd->new(); # Script associations (see also embedded in source):...
61.44 KB  
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  
Security Tools  -  F-Prot GUI 0.5
F-Prot GUI is a graphical user interface for great (and free for individual users) command line antivirus called F-Prot. F-Prot GUI is a very simple script but not featureless, I hope it will be useful. For home users using the Linux...
9.22 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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 freedesktop.org, 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  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
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