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

Method get_parser

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

Source from the content-addressed store, hash-verified

3569class TestMutuallyExclusiveFirstSuppressed(MEMixin, TestCase):
3570
3571 def get_parser(self, required):
3572 parser = ErrorRaisingArgumentParser(prog='PROG')
3573 group = parser.add_mutually_exclusive_group(required=required)
3574 group.add_argument('-x', help=argparse.SUPPRESS)
3575 group.add_argument('-y', action='store_false', help='y help')
3576 return parser
3577
3578 failures = ['-x X -y']
3579 successes = [

Callers

nothing calls this directly

Calls 3

add_argumentMethod · 0.45

Tested by

no test coverage detected