function toConfigOptions(config) {
    return Object.keys(config).map(key => `--${key}=${config[key]}`)
}
Converts a given config object to an `--a=b` style option array.

@param {object|null} config -
  A map-like object to set configs.
@returns {string[]} `--a=b` style options.