function toArray(arg) {
  if (typeof arg === 'string') {
    return [arg];
  } else if (arg) {
    return arg;
  } else {
    return [];
  }
}
Minimist gives us a string, array or null: normalize to array.

@param {(string|Array<string>)}
@return {!Array<string>}