function getOverrideArgsForCommand(command, args = process.argv) {
  const argPrefix = `--${command}.`;
  return args
    .filter(arg => arg.startsWith(argPrefix) || /--no-?lighthouserc/i.test(arg))
    .map(arg => arg.replace(argPrefix, '--'));
}
@param {'collect'|'assert'|'upload'|'healthcheck'} command
@param {string[]} [args]