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 a command line option.
  
  :opts: option names, can be short or long options.
  :attrs: same attributes which the ``add_option()`` function of the
     `argparse library
     <http://docs.python.org/2/library/argparse.html>`_
     accepts.
  
  After command line parsing options are available on the pytest config
  object via ``config.option.NAME`` where ``NAME`` is usually set
  by passing a ``dest`` attribute, for example
  ``addoption("--long", dest="NAME", ...)``.
docstr_tok: ["register","a","command","line","option",".",":","opts",":","option","names",",","can","be","short","or","long","options",".",":","attrs",":","same","attributes","which","the","``","add_option","(",")","``","function","of","the","`","argparse","library","<","http",":","\/\/docs.python.org\/2\/library\/argparse.html",">","`","_","accepts",".","After","command","line","parsing","options","are","available","on","the","pytest","config","object","via","``","config.option.NAME","``","where","``","NAME","``","is","usually","set","by","passing","a","``","dest","``","attribute",",","for","example","``","addoption","(","``","--","long","''",",","dest=","''","NAME","''",",","...",")","``","."]
code: def addoption(self, *opts, **attrs):
      """register a command line option.
  
      :opts: option names, can be short or long options.
      :attrs: same attributes which the ``add_option()`` function of the
         `argparse library
         <http://docs.python.org/2/library/argparse.html>`_
         accepts.
  
      After command line parsing options are available on the pytest config
      object via ``config.option.NAME`` where ``NAME`` is usually set
      by passing a ``dest`` attribute, for example
      ``addoption("--long", dest="NAME", ...)``.
      """
      self._anonymous.addoption(*opts, **attrs)
  
imports: import argparse
  import warnings
  import py
  import six
  from _pytest.config.exceptions import UsageError
label_desc: Use image node_id 4 for calling the Parser obj's underlying member method code with example usage: obj.addoption() without return types