From: Tassilo Horn Date: 2006-03-08T00:18:40+09:00 Subject: Re: getoptlong question Matt Rose 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