or simply:

```js
return pathsArg.split(/\S+/);
```

Not sure why this function is supposed to handle array input anyway? Isn't the argv entry simply containing a single string?