| 417 | currentValue.push(value); | 417 | currentValue.push(value); |
| 418 | args[name] = currentValue; | 418 | args[name] = currentValue; |
| 419 | } else { | 419 | } else { |
| 420 | // If there is nothing in there, just assign it as singular value, until multiple values are found | 420 | // If there is nothing in there, we create an array with that singular value |
| 421 | args[name] = value; | 421 | args[name] = [value]; |
| 422 | } | 422 | } |
| 423 | } else { | 423 | } else { |
| 424 | args[name] !== undefined && console.debug(`Named argument assigned multiple times: ${name}`); | 424 | args[name] !== undefined && console.debug(`Named argument assigned multiple times: ${name}`); |