for flag in ["cache", "serial", "lambda"]:
    value = options.get(flag)
    if value:
      full_command += ["--%s" % flag]