option parse

J

Jon Hawkins

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?
 
L

Lutz Horn

A

Ari Brown

Check out the OptionParser gem. I find it to be simpler than
optparse, though you may differ in your opinion...


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?

--------------------------------------------|
If you're not living on the edge,
then you're just wasting space.
 
A

ara.t.howard

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/
 
P

Peña, Botp

From: ara.t.howard [mailto:[email protected]]=20
# i prefer not to parse options, or at least i've written it one final =20
# time:
..
# with main you can abstract all that repetitive stuff into a few =20
# declarative statements.

how come i missed this nifty tool? was it because you named it Main, =
ara? :) Nice gem really. thanks for main=20
kind regards -botp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,264
Messages
2,571,315
Members
48,000
Latest member
SusannahSt

Latest Threads

Top