small medium large xlarge

Image_pragsmall
26 Oct 2011, 16:39
Javier Juarez Martinez (1 post)

Hi guys,

I just thinking may be a good idea include references to this other interesting gems for CLI options parse:

# “Choice”:https://github.com/defunkt/choice # ”Slop”:https://github.com/injekt/slop

the are cleaner than the classic options_parse

regards, Javier

Dmfcb_pragsmall
26 Oct 2011, 18:47
David Copeland (136 posts)

Yes, there will be an appendix to talk about these and show a few usage examples. There’s so many option parsers, it’s hard to nail them all down (didn’t even know about those two).

My hope is to show some usage examples for several popular/interesting ones, and then, at the very least, a list of all the others I can find that seem usefule/maintained.

Photo_112_pragsmall
31 Oct 2011, 18:43
Jeremy Hinegardner (6 posts)

Similar to me,I thought I knew most of the commandline parsers, GLI is a new one for me.

It would also be good to include links to:

“Trollop”:http://trollop.rubyforge.org/

# “Main”:https://github.com/ahoward/main

Trollop and Main are two CLI option parsers I use extensively. Trollop mainly in locations where I would have previously used OptionParser, and Main in the areas where I need subcommands like GLI provides, or cascading environment variables down through the options. I think Main and GLI may be very similar.

Dmfcb_pragsmall
31 Oct 2011, 21:31
David Copeland (136 posts)

Yes, I had planned on Trollop; Main was new to me as of a few months ago. Possibly the hardest thing to search for ever.

Photo_112_pragsmall
31 Oct 2011, 22:38
Jeremy Hinegardner (6 posts)

The ‘main’ and ‘logging’ gems, two of the hardest to find. If you have any questions about Main, I’d be happy to help answer, or I can put you on touch with Ara.

  You must be logged in to comment