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

Method get_parser

Lib/test/test_argparse.py:3417–3424  ·  view source on GitHub ↗
(self, required=None)

Source from the content-addressed store, hash-verified

3415class TestMutuallyExclusiveLong(MEMixin, TestCase):
3416
3417 def get_parser(self, required=None):
3418 parser = ErrorRaisingArgumentParser(prog='PROG')
3419 parser.add_argument('--abcde', help='abcde help')
3420 parser.add_argument('--fghij', help='fghij help')
3421 group = parser.add_mutually_exclusive_group(required=required)
3422 group.add_argument('--klmno', help='klmno help')
3423 group.add_argument('--pqrst', help='pqrst help')
3424 return parser
3425
3426 failures = ['--klmno X --pqrst Y']
3427 successes = [

Callers

nothing calls this directly

Calls 3

add_argumentMethod · 0.45

Tested by

no test coverage detected