MCPcopy Index your code
hub / github.com/python/cpython / ErrorRaisingArgumentParser

Class ErrorRaisingArgumentParser

Lib/test/test_argparse.py:207–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206
207class ErrorRaisingArgumentParser(argparse.ArgumentParser):
208
209 def parse_args(self, *args, **kwargs):
210 parse_args = super(ErrorRaisingArgumentParser, self).parse_args
211 return stderr_to_parser_error(parse_args, *args, **kwargs)
212
213 def exit(self, *args, **kwargs):
214 exit = super(ErrorRaisingArgumentParser, self).exit
215 return stderr_to_parser_error(exit, *args, **kwargs)
216
217 def error(self, *args, **kwargs):
218 error = super(ErrorRaisingArgumentParser, self).error
219 return stderr_to_parser_error(error, *args, **kwargs)
220
221
222class ParserTesterMetaclass(type):

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…