Getopt::Declare - Declaratively Expressed Command-Line Arguments via
Regular Expressions

Getopt::Declare is *yet another* command-line argument parser, one
which is specifically designed to be powerful but exceptionally easy to
use.

= SYNOPSIS

require "Getopt/Declare"
args = Getopt::Declare.new(<<'EOF')

   -q, --quiet                 quiet
   -f, --files <files:if>...   input files
   -n, --number  <num:n>       a float number
   -i, --integer <num:i>       an integer number

 EOF

p args['-q']
p args['-f']
p args.unused

= What's NEW in v1.20?

- Parameter definitions can now also be specified using GNU style help
lines, like in the example above.
- Parameter definitions can now be recognized by the use either of one
or more tabs (like before) or by 3 consecutive spaces.  This simplifies
parameter definitions quite a lot, particularly for those using editors
that are not friendly to tabs.
- A couple of minor bug fixes here and there.
- Docs are now available at rubyforge.

= How to get it?

gem install getopt-declare

or download as a zip file from rubyforge.

= For more information

http://getoptdeclare.rubyforge.org            - documentation
http://rubyforge.org/projects/getoptdeclare/  - project