{
  "id": "python/pytest-option-error",
  "signature": "Usage: pytest [options] [file_or_dir] [file_or_dir] [...]\npytest: error: unrecognized arguments: --foo",
  "signature_zh": "用法：pytest [选项] [文件或目录] [文件或目录] [...]\npytest：错误：无法识别的参数：--foo",
  "regex": "Usage:\\ pytest\\ \\[options\\]\\ \\[file_or_dir\\]\\ \\[file_or_dir\\]\\ \\[\\.\\.\\.\\]\\\npytest:\\ error:\\ unrecognized\\ arguments:\\ \\-\\-foo",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "在命令行或pytest.ini中使用了pytest不认识的选项，可能是拼写错误或需要插件。",
  "root_cause_type": "generic",
  "root_cause_zh": "在命令行或pytest.ini中使用了pytest不认识的选项，可能是拼写错误或需要插件。",
  "versions": [
    {
      "version": "7.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "8.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "pytest会继续报错，且可能忽略重要配置",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "--help只列出已知选项，不能解决未知选项",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pytest --help | grep foo",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip install pytest-foo",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}