I'm no expert, I've only used OptionParser for simple command parsing,
but looking at the documentation, to read an array, you probably need to
do something like this:
opts.on("--clients x,y,z", Array, "Example 'list' of arguments") do
|list|
options.client_ids = list
end
--
Posted via http://www.ruby-forum.com/.