def getoption(self, name, default=notset, skip=False):
        name = self._opt2dest.get(name, name)
        try:
            val = getattr(self.option, name)
            if val is None and skip:
                raise AttributeError(name)
            return val
        except AttributeError:
            if default is not notset:
                return default
            if skip:
                import pytest
                pytest.skip("no %r option found" %(name,))
            raise ValueError("no option named %r" % (name,))
return command line option value.
dataset/ETHPy150Open pytest-dev/pytest/_pytest/config.py/Config.getoption