davetron5000/optparse-plus

Repeated options

luc-j-bourhis opened this issue · 1 comments

I would like foo --bar first --bar second --bar third to result in options[:bar] == %w(first second third). Methadone doesn't support that out of the box, does it?

I don’t belive it does. Ultimately, methadone uses Ruby’s OptionParser, so to get an array, you’d do:

on(“bar”,Array)

And to invoke it:

> foo --bar=first,second,third