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

Method get_parser

Lib/test/test_argparse.py:3604–3611  ·  view source on GitHub ↗
(self, required)

Source from the content-addressed store, hash-verified

3602class TestMutuallyExclusiveManySuppressed(MEMixin, TestCase):
3603
3604 def get_parser(self, required):
3605 parser = ErrorRaisingArgumentParser(prog='PROG')
3606 group = parser.add_mutually_exclusive_group(required=required)
3607 add = group.add_argument
3608 add('--spam', action='store_true', help=argparse.SUPPRESS)
3609 add('--badger', action='store_false', help=argparse.SUPPRESS)
3610 add('--bladder', help=argparse.SUPPRESS)
3611 return parser
3612
3613 failures = [
3614 '--spam --badger',

Callers

nothing calls this directly

Calls 3

addFunction · 0.70

Tested by

no test coverage detected