MCPcopy Index your code
hub / github.com/RustPython/RustPython / ErrorRaisingArgumentParser

Class ErrorRaisingArgumentParser

Lib/test/test_argparse.py:187–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185
186
187class ErrorRaisingArgumentParser(argparse.ArgumentParser):
188
189 def parse_args(self, *args, **kwargs):
190 parse_args = super(ErrorRaisingArgumentParser, self).parse_args
191 return stderr_to_parser_error(parse_args, *args, **kwargs)
192
193 def exit(self, *args, **kwargs):
194 exit = super(ErrorRaisingArgumentParser, self).exit
195 return stderr_to_parser_error(exit, *args, **kwargs)
196
197 def error(self, *args, **kwargs):
198 error = super(ErrorRaisingArgumentParser, self).error
199 return stderr_to_parser_error(error, *args, **kwargs)
200
201
202class ParserTesterMetaclass(type):

Calls

no outgoing calls