fix issue with repeated options taking only the last value specified;
collect all the values specified for a particular option