def get_config_item(session, name):
    """Return the given config item from either the command line or pytest.ini"""

    value = session.config.getoption(name)
    if value is None:
        value = session.config.getini(name)
    return value