Commonly agreed command line options gem?

L

LAMBEAU Bernard

Hi,

- Is there a commonly agreed gem for parsing command line options of a
script (ARGV) ?
- If no, does anyone know a good one ?

In all cases (as I'm relatively new to Ruby), what heuristic do you
use to select the gems you need? There actually a lot of gems
available and selecting the good one (still maintained, well tested,
famous ruby developers maybe (?), ...) is pretty hard to me.

Thanks
blambeau
 
J

Jesús Gabriel y Galán

Hi,

- Is there a commonly agreed gem for parsing command line options of a
script (ARGV) ?
- If no, does anyone know a good one ?

In all cases (as I'm relatively new to Ruby), what heuristic do you
use to select the gems you need? There actually a lot of gems
available and selecting the good one (still maintained, well tested,
famous ruby developers maybe (?), ...) is pretty hard to me.

OptionParser is in ruby core:

http://www.ruby-doc.org/core/classes/OptionParser.html

I am very happy with Ara Howard's "main" gem, though.
It's very easy to use.

Jesus.
 
S

Sebastian W.

LAMBEAU said:
Hi,

- Is there a commonly agreed gem for parsing command line options of a
script (ARGV) ?
- If no, does anyone know a good one ?

In all cases (as I'm relatively new to Ruby), what heuristic do you
use to select the gems you need? There actually a lot of gems
available and selecting the good one (still maintained, well tested,
famous ruby developers maybe (?), ...) is pretty hard to me.

Thanks
blambeau

My absolute favorite is "trollop". It is mega-mega awesome.
 

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

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top