On Aug 9, 2007, at 10:08 PM, Jon Hawkins wrote:

> is there a better, or different way to pipe arguments to a program
> rather than using optparse? or is that the best and fastest way?

i prefer not to parse options, or at least i've written it one final  
time:

   http://codeforpeople.com/lib/ruby/main/main-0.0.2/samples/a.rb
   http://codeforpeople.com/lib/ruby/main/main-0.0.2/samples/b.rb
   http://codeforpeople.com/lib/ruby/main/main-0.0.2/samples/c.rb
   http://codeforpeople.com/lib/ruby/main/main-0.0.2/samples/d.rb

   gem install main

with main you can abstract all that repetitive stuff into a few  
declarative statements.

regards.

a @ http://drawohara.com/
--
we can deny everything, except that we have the possibility of being  
better. simply reflect on that.
h.h. the 14th dalai lama