[#2367] Standard libraries — Dave Thomas <dave@...>

From ruby-dev summary:

60 messages 2004/02/11

[#2397] PATCH: deprecate cgi-lib, getopts, importenv, parsearg from standard library — Gavin Sinclair <gsinclair@...>

Index: cgi-lib.rb

15 messages 2004/02/12

[#2465] PATCH: OpenStruct#initialize to yield self — Gavin Sinclair <gsinclair@...>

This is a common approach I use to object initialization; I don't know

24 messages 2004/02/19

Re: PATCH: deprecate cgi-lib, getopts, importenv, parsearg from standard library

From: "Gavin Sinclair" <gsinclair@...>
Date: 2004-02-12 23:45:33 UTC
List: ruby-core #2418
>> +warn "Warning: getopts is deprecated after Ruby 1.8.1; use getoptlong
>> or optparse instead" +
>
> Do we want to support both of these, as well? IMO, we should recommend
> "best  of breed" for this, not two different libraries. The
> recommendation should  be, IMO, OptionParser.
>
> -austin

Definitely agree, and the getoptlong recommendation has been dropped.  In
terms of "supporting" it, though, I don't think getoptlong can be dropped;
it's used too much.  Besides, there's nothing essentially wrong with it. 
I thought it was great until I used optparse :)

Gavin



In This Thread