* Hugh Sasse Staff Elec Eng (hgs / dmu.ac.uk) wrote:
> On Fri, 2 Aug 2002, Berger, Daniel wrote:
> 
> > As it stands now, GetoptLong acts like a cousin of Hash, rather than a
> > child.  Looks like a Hash, smells like a Hash but...it's not a Hash.  This
> > only leads to confusion, IMHO.  Besides, it already sounds like more than
> 
> Doesn't it need to be an ordered hash, for the case where successive
> options override earlier ones?

The conversation here seems to be assuming I was talking about replacing
the existing implementation with something more hash-like.  I wasn't.  A
hash wouldn't account for the instance you just mentioned, nor would it
account for cases where one option negates another one (because there
would be no way to tell which came first on the command-line).

That said, I still believe it's something that would be useful in the
base class.  The #to_hash method I proposed would a convenient and
simple way to handle the most common case: a quick program with a few
non-related command-line options to choose from.

> >
> > Regards,
> >
> > Dan
> >
>         Hugh

-- 
Paul Duncan <pabs / pablotron.org>        pabs in #gah (OPN IRC)
http://www.pablotron.org/               OpenPGP Key ID: 0x82C29562