From: Matt Rose Date: 2006-03-08T00:22:12+09:00 Subject: Re: getoptlong question On Wed, 8 Mar 2006, ara.t.howard@noaa.gov wrote: > On Tue, 7 Mar 2006, Matt Rose wrote: > >> >> This has been bugging me for weeks now, intermittently. >> > harp:~ > diff -ubB a.rb.org a.rb > --- a.rb.org 2006-03-07 07:56:07.000000000 -0700 > +++ a.rb 2006-03-07 07:58:12.000000000 -0700 > @@ -9,7 +9,7 @@ > > server = 'http://192.168.10.16/' > verbose = false > -opts.each { |o,a| p o } > +#opts.each { |o,a| p o } > opts.each { |o,a| > case o > when '--devel' > > > harp:~ > ruby -- a.rb --debug --devel --verbose > "http://192.168.20.56/" > true > true > > > each is destructive - as most argv parsers are. Oh, fer cryin' out loud I'm an idiot. > > hth. Certainly did. Thanks. > > -a > > -- -------------------------------------------------------------------------- Matt Rose mattrose@folkwolf.net Visit my blog! http://folkwolf.net He's a time-tossed coffee-fuelled vampire hunter on a search for his missing sister. She's a hard-bitten goth traffic cop looking for love in all the wrong places. They fight crime!