class_docstr: Parser for command line arguments and ini-file values.
  
  :ivar extra_info: Dict of generic param -> value to display in case
      there's an error processing the command line arguments.
docstr: Register an ini-file option.
  
  :param name:
      Name of the ini-variable.
  :param type:
      Type of the variable. Can be:
  
          * ``string``: a string
          * ``bool``: a boolean
          * ``args``: a list of strings, separated as in a shell
          * ``linelist``: a list of strings, separated by line breaks
          * ``paths``: a list of :class:`pathlib.Path`, separated as in a shell
          * ``pathlist``: a list of ``py.path``, separated as in a shell
  
      .. versionadded:: 7.0
          The ``paths`` variable type.
  
      Defaults to ``string`` if ``None`` or not passed.
  :param default:
      Default value if no ini-file option exists but is queried.
  
  The value of ini-variables can be retrieved via a call to
  :py:func:`config.getini(name) <pytest.Config.getini>`.
docstr_tok: ["Register","an","ini-file","option",".",":","param","name",":","Name","of","the","ini-variable",".",":","param","type",":","Type","of","the","variable",".","Can","be",":","*","``","string","``",":","a","string","*","``","bool","``",":","a","boolean","*","``","args","``",":","a","list","of","strings",",","separated","as","in","a","shell","*","``","linelist","``",":","a","list","of","strings",",","separated","by","line","breaks","*","``","paths","``",":","a","list","of",":","class",":","`","pathlib.Path","`",",","separated","as","in","a","shell","*","``","pathlist","``",":","a","list","of","``","py.path","``",",","separated","as","in","a","shell","..","versionadded",":",":","7.0","The","``","paths","``","variable","type",".","Defaults","to","``","string","``","if","``","None","``","or","not","passed",".",":","param","default",":","Default","value","if","no","ini-file","option","exists","but","is","queried",".","The","value","of","ini-variables","can","be","retrieved","via","a","call","to",":","py",":","func",":","`","config.getini","(","name",")","<","pytest.Config.getini",">","`","."]
code: def addini(
      self,
      name: str,
      help: str,
      type: Optional[
          "Literal['string', 'paths', 'pathlist', 'args', 'linelist', 'bool']"
      ] = None,
      default: Any = None,
  ) -> None:
      """Register an ini-file option.
  
      :param name:
          Name of the ini-variable.
      :param type:
          Type of the variable. Can be:
  
              * ``string``: a string
              * ``bool``: a boolean
              * ``args``: a list of strings, separated as in a shell
              * ``linelist``: a list of strings, separated by line breaks
              * ``paths``: a list of :class:`pathlib.Path`, separated as in a shell
              * ``pathlist``: a list of ``py.path``, separated as in a shell
  
          .. versionadded:: 7.0
              The ``paths`` variable type.
  
          Defaults to ``string`` if ``None`` or not passed.
      :param default:
          Default value if no ini-file option exists but is queried.
  
      The value of ini-variables can be retrieved via a call to
      :py:func:`config.getini(name) <pytest.Config.getini>`.
      """
      assert type in (
          None,
          "string",
          "paths",
          "pathlist",
          "args",
          "linelist",
          "bool",
      )
      self._inidict[name] = (help, type, default)
      self._ininames.append(name)
  
imports: import argparse
  import os
  import sys
  import warnings
  from gettext import gettext
  from typing import Any
  from typing import Callable
  from typing import cast
  from typing import Dict
  from typing import List
  from typing import Mapping
  from typing import NoReturn
  from typing import Optional
  from typing import Sequence
  from typing import Tuple
  from typing import TYPE_CHECKING
  from typing import Union
  import _pytest._io
  from _pytest.compat import final
  from _pytest.config.exceptions import UsageError
  from _pytest.deprecated import ARGUMENT_PERCENT_DEFAULT
  from _pytest.deprecated import ARGUMENT_TYPE_STR
  from _pytest.deprecated import ARGUMENT_TYPE_STR_CHOICE
  from _pytest.deprecated import check_ispytest
label_desc: Use image node_id 10 for calling the Parser obj's underlying member method code with example usage: obj.addini(name, help, type, default) without return types