RAA - usage

usage / 0.0.4

Short description: A lightweight way to provide access to command line parameters
Category: Library/Utility
Status: beta
Created: 2005-09-21 19:44:33 GMT
Last update: 2005-10-17 21:21:38 GMT
Owner: Steve Tuckner (Projects of this owner)
Homepage: http://rubyforge.org/projects/usage/
Download: http://rubyforge.org/frs/?group_id=348&release_id=2979
License: Ruby's
Dependency:
Requires: SimpleTrace/0.0.1 Simple tracing facility
Description:

The usage library is a library that is allows command line scripts to be written with a minimum of memorization necessary to access the arguments. I wrote it because I was tired of copying code from other command line programs that used GetOptLong. This was started before there was a profusion of different command line libraries. Even with this profusion, there is still some memorization that goes along with how to set up the framework process the arguments.

A simple example is:

usage = Usage.new "-t to_name -f from_name files_to_send..."

puts usage.to_name # => the value after the -t
puts usage.from_name # => the value after -f
puts usage.files_to_send # => an array of filenames

Versions: [0.0.4 (2005-10-17)] [0.0.2 (2005-09-21)]

Edit this project (for project owner)

back to RAA top