def getoption(self, name, default=notset, skip=False):
name = self._opt2dest.get(name, name)<EOL>try:<EOL><INDENT>val = getattr(self.option, name)<EOL>if val is None and skip:<EOL><INDENT>raise AttributeError(name)<EOL><DEDENT>return val<EOL><DEDENT>except AttributeError:<EOL><INDENT>if default is not notset:<EOL><INDENT>return default<EOL><DEDENT>if skip:<EOL><INDENT>import pytest<EOL>pytest.skip("<STR_LIT>" % (name,))<EOL><DEDENT>raise ValueError("<STR_LIT>" % (name,))<EOL><DEDENT>
return command line option value.

        :arg name: name of the option.  You may also specify
            the literal ``--OPT`` option instead of the "dest" option name.
        :arg default: default value if no option of that name exists.
        :arg skip: if True raise pytest.skip if option does not exists
            or has a None value.