def pytest_addoption(parser):
    """Add command-line options for controlling the plugin."""
    parser.addoption(
        "--select-cmd",
        metavar="CMD",
        action="store",
        default="",
        type=str,
        help="Command to run to get test names",
    )
Add command-line options for controlling the plugin.
tests/select_plugin.py