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

Method many_groups

Lib/test/test_argparse.py:262–266  ·  view source on GitHub ↗

Add each argument in its own group to the parser

(parser, argument_signatures)

Source from the content-addressed store, hash-verified

260 group.add_argument(*sig.args, **sig.kwargs)
261
262 def many_groups(parser, argument_signatures):
263 """Add each argument in its own group to the parser"""
264 for i, sig in enumerate(argument_signatures):
265 group = parser.add_argument_group('foo:%i' % i)
266 group.add_argument(*sig.args, **sig.kwargs)
267
268 # --------------------------
269 # functions for parsing args

Callers

nothing calls this directly

Calls 3

enumerateFunction · 0.85
add_argument_groupMethod · 0.45
add_argumentMethod · 0.45

Tested by

no test coverage detected