Tassilo Horn
3/7/2006 2:58:00 PM
Matt Rose <mattrose@folkwolf.net> writes:
> What am I missing?
GetoptLong::each as well as GetoptLong::get consume the options. After
the first opts.each{..} your opts are emtpy.
The docs don't mention that, I think. I also had those troubles when I
used opts.get == nil to check if no options were given.
Perhaps you should have a look at the optparse module in the stdlib.
Regards,
Tassilo