# Usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --foo

- **ID:** `python/pytest-option-error`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

在命令行或pytest.ini中使用了pytest不认识的选项，可能是拼写错误或需要插件。

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 7.x | active | — | — |
| 8.x | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   pytest --help | grep foo
   ```
2. **** (85% success)
   ```
   pip install pytest-foo
   ```

## Dead Ends

- **** — pytest会继续报错，且可能忽略重要配置 (50% fail)
- **** — --help只列出已知选项，不能解决未知选项 (40% fail)
