From: Chris Dutton Date: 2004-04-03T09:19:19+09:00 Subject: Re: Learning Ruby, was a C geek... A few suggestions, if I may. I wonder if your option detection might be more efficient as: trace = true if ARGV.include? "-t" dump = true if ARGV.include? "-d" filenames = ARGV.delete_if { |n| n !~ /^[^-]/ } fn = filenames.empty? ? nil : filenames.first It would save you from looping through ARGV, just in case it's a mile long or something. :-)