{
  "id": "python/pytest-command-line-option-typo",
  "signature": "ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\npytest: error: unrecognized arguments: --tst",
  "signature_zh": "错误：无法识别的参数：--tst",
  "regex": "ERROR:\\ usage:\\ pytest\\ \\[options\\]\\ \\[file_or_dir\\]\\ \\[file_or_dir\\]\\ \\[\\.\\.\\.\\]\\\npytest:\\ error:\\ unrecognized\\ arguments:\\ \\-\\-tst",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "在命令行中使用了不存在的 pytest 选项，通常因为拼写错误或插件未加载。",
  "root_cause_type": "generic",
  "root_cause_zh": "在命令行中使用了不存在的 pytest 选项，通常因为拼写错误或插件未加载。",
  "versions": [
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "使用 --help",
      "why_fails": "尝试使用 --help 查看所有选项但可能忽略插件选项",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "自定义选项注册错误",
      "why_fails": "尝试在 conftest.py 中添加自定义选项但未正确注册",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "确认选项存在",
      "success_rate": 0.95,
      "how": "检查拼写，使用 pytest --help 查看可用选项",
      "condition": "",
      "sources": []
    },
    {
      "action": "安装插件",
      "success_rate": 0.9,
      "how": "安装相应插件，如 pytest-cov 提供 --cov",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-10-18",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}