From: Joel VanderWerf Date: 2004-01-09T13:22:53+09:00 Subject: Re: ANN: First release of Perl's Getopt::Declare for ruby GGarramuno wrote: > Okay, as a way of returning the favor for all my recent silly > questions, I've uploaded a first release of the ruby port of Damian > Conway's Getopt::Declare (written originally for Perl). Darn, just when I've gotten in the habit of using optparse everywhere, along comes this cool thing... One suggestion: make it possible to apply to an arbitrary array, rather than just ARGV (or is this already possible?). Another suggestion, regarding: > -F ... Process named file(s) > { defer( proc { file.each {|i| > process(i) } } ) } it's probably possible to get the syntax to be: { defer { file.each {|i| process(i) } } just by replacing def defer(block) ... end with def defer(&block) ... end