# pytest_addoption

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/pytest_plugin/pytest_addoption)

Set a boolean flag for LangSmith output.

Skip if --langsmith-output is already defined.

## Signature

```python
pytest_addoption(
    parser,
)
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/7bb930874ab88cd4791c463ee0f4d51a5e451fd3/python/langsmith/pytest_plugin.py#L21)