RAA - getopt/1.3.9

getopt / 1.3.9

Short description: Simple command line parser
Category: Library/Utility
Status: stable
Created: 2005-10-06 15:13:15 GMT
Last update: 2009-07-30 00:38:45 GMT
Owner: Daniel J. Berger (Projects of this owner)
Homepage: http://rubyforge.org/projects/shards/
Download: http://rubyforge.org/frs/download.php/61217/getopt-1.3.9.tar.gz
License: Ruby's
Dependency:
None
Description:

A simple command line parser based loosely on Perl’s Getopt::Std. Also includes a reworked Getopt::Long.

Synopsis

   require "getopt/std"

   # Takes three switches.  "I" and "D" are boolean, "o"
   # requires an argument if present.
   opts = Getopt::Std.getopts("o:ID")
   if opts["I"]
      # -I option was found
   end

   if opts["D"]
      # -D option was found
   end

   if opts["o"]
      case opts["o"]
         ...
   end
Versions: [1.4.0 (2009-09-06)] [1.3.9 (2009-07-30)] [1.3.8 (2009-01-07)] [1.3.7 (2008-07-27)] [1.3.6 (2007-08-08)] [1.3.5 (2006-07-05)] [1.3.4 (2006-03-07)] [1.3.3 (2006-02-22)] [1.3.2 (2006-02-13)] [1.3.1 (2005-11-18)] [1.3.0 (2005-11-04)] [1.2.0 (2005-10-24)] [1.1.0 (2005-10-07)] [1.0.0 (2005-10-06)]

Edit this project (for project owner)

back to RAA top