def pytest_addoption(parser):
    """Hook implementation that adds a "--md" CLI flag."""
    group = parser.getgroup('terminal reporting')
    group.addoption('--md', action='store', dest='mdpath', metavar='path',
        default=None, help='create markdown report file at given path.')
