MCPcopy Create free account
hub / github.com/ipython/ipython / add_to_parser

Method add_to_parser

IPython/core/magic_arguments.py:228–234  ·  view source on GitHub ↗

Add this object's information to the parser.

(self, parser, group)

Source from the content-addressed store, hash-verified

226 self.kwds = kwds
227
228 def add_to_parser(self, parser, group):
229 """ Add this object's information to the parser.
230 """
231 if group is not None:
232 parser = group
233 getattr(parser, self._method_name)(*self.args, **self.kwds)
234 return None
235
236
237class argument(ArgMethodWrapper):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected