pytest-csv-params/_ptcsvp/cmdline.py
Juergen Edelbluth 9b744d8b4c
Preparing next release
- Fixing all the mypy warnings - Part 1
- Changed README
- Breaking Change about parameter order
- Tests for it
2022-08-15 18:19:39 +02:00

23 lines
501 B
Python

"""
Command Line Options
"""
from _pytest.config.argparsing import Parser
HELP_TEXT = "set base dir for getting CSV data files from"
def pytest_addoption(parser: Parser, plugin_name: str = "csv-params") -> None:
"""
Add Command Line Arguments for pytest execution
"""
group = parser.getgroup(plugin_name)
group.addoption(
f"--{plugin_name}-base-dir",
action="store",
type=str,
default=None,
required=False,
help=HELP_TEXT,
)