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

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

Serving Software Downloads in 956 Categories, Downloaded 50.064.318 Times

Getopt::Tiny 1.02

  Date Added: September 15, 2010  |  Visits: 879

Getopt::Tiny

Report Broken Link
Printer Friendly Version


Product Homepage
Download (87 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
USER REVIEWS
More Reviews or Write Review


GETOPT::TINY RELATED
Libraries  -  Getopt::Clade 0.0.1
Getopt::Clade is a Perl module with command-Line Argument Declaration Engine. This module is a placeholder for the real Getopt::Clade module. The module was supposed to be released by July 2005, to support the book "Perl Best Practices"....
3.07 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  
Programming  -  CLAJR - Command Line Arguments with Java rc
A command line parsing system. Through Java Reflection it allows simple usage. The keys are defined as standard, overloadable methods, and are transparently managed by the engine. No need to use library-defined objects or enums. Developer has the...
10.04 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  
Utilities  -  whohas 0.15
whohas is a command line tool that allows querying several package lists at once - currently supported are Arch, Debian, Fedora, Gentoo, Slackware (and linuxpackages.net), Source Mage, FreeBSD, NetBSD, OpenBSD, Fink and DarwinPorts. whohas is...
18.43 KB  
Modules  -  Optik 1.5.1
Optik is a powerful, flexible, extensible, easy-to-use command-line parsing library for Python. Using Optik, you can add intelligent, sophisticated handling of command-line options to your scripts with very little overhead.
 
Database Tools  -  Yet Another SQL*Plus Replacement 1.82
YASQL project is an open source Oracle command line interface. It features a much kinder user interface than SQL*Plus (sqlplus). This is meant to be a complete replacement for SQL*Plus when dealing with ad hoc queries and general database...
81.92 KB  
Database Tools  -  SQLite3 3.7.5
The SQLite library includes a small command-line utility SQLite3 that will allow you to manually enter and execute SQL commands against an SQLite3 database. This document provides a brief introduction on how to use sqlite3. To start the SQLite3...
 
Development Tools  -  XMLStarlet for XML Tools 1.1
XMLStarlet is a set of command line utilities (tools) which can be used to transform, query, validate, and edit XML documents and files using simple set of shell commands in similar way it is done for plain text files using UNIX grep, sed, awk,...
317.44 KB  
Programming  -  Console_GetoptPlus 1.0.0rc1
Command-line option parser: PHP5 port/rewrite of Console_Getopt, with added functionalities, and with a Web interface to run getopt-like shell commands through a browser (not implemented yet).
22.04 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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...
3.88 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