Closed luc-j-bourhis closed 3 years ago
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?
foo --bar first --bar second --bar third
options[:bar] == %w(first second third)
I don’t belive it does. Ultimately, methadone uses Ruby’s OptionParser, so to get an array, you’d do:
OptionParser
on(“bar”,Array)
And to invoke it:
> foo --bar=first,second,third
I would like
foo --bar first --bar second --bar third
to result inoptions[:bar] == %w(first second third)
. Methadone doesn't support that out of the box, does it?