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: get (or create) a named option Group.
  
  :name: name of the option group.
  :description: long description for --help output.
  :after: name of other group, used for ordering --help output.
  
  The returned group object has an ``addoption`` method with the same
  signature as :py:func:`parser.addoption
  <_pytest.config.Parser.addoption>` but will be shown in the
  respective group in the output of ``pytest. --help``.
docstr_tok: ["get","(","or","create",")","a","named","option","Group",".",":","name",":","name","of","the","option","group",".",":","description",":","long","description","for","--","help","output",".",":","after",":","name","of","other","group",",","used","for","ordering","--","help","output",".","The","returned","group","object","has","an","``","addoption","``","method","with","the","same","signature","as",":","py",":","func",":","`","parser.addoption","<","_pytest.config.Parser.addoption",">","`","but","will","be","shown","in","the","respective","group","in","the","output","of","``","pytest",".","--","help","``","."]
code: def getgroup(self, name, description="", after=None):
      """get (or create) a named option Group.
  
      :name: name of the option group.
      :description: long description for --help output.
      :after: name of other group, used for ordering --help output.
  
      The returned group object has an ``addoption`` method with the same
      signature as :py:func:`parser.addoption
      <_pytest.config.Parser.addoption>` but will be shown in the
      respective group in the output of ``pytest. --help``.
      """
      for group in self._groups:
          if group.name == name:
              return group
      group = OptionGroup(name, description, parser=self)
      i = 0
      for i, grp in enumerate(self._groups):
          if grp.name == after:
              break
      self._groups.insert(i + 1, group)
      return group
  
imports: import argparse
  import warnings
  import py
  import six
  from _pytest.config.exceptions import UsageError
label_desc: Use image node_id 3 for calling the Parser obj's underlying member method code with example usage: obj.getgroup(name, description, after) and returns: group, group