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

Method one_group

Lib/test/test_argparse.py:236–240  ·  view source on GitHub ↗

Add all arguments under a single group in the parser

(parser, argument_signatures)

Source from the content-addressed store, hash-verified

234 parser.add_argument(*sig.args, **sig.kwargs)
235
236 def one_group(parser, argument_signatures):
237 """Add all arguments under a single group in the parser"""
238 group = parser.add_argument_group('foo')
239 for sig in argument_signatures:
240 group.add_argument(*sig.args, **sig.kwargs)
241
242 def many_groups(parser, argument_signatures):
243 """Add each argument in its own group to the parser"""

Callers

nothing calls this directly

Calls 2

add_argument_groupMethod · 0.45
add_argumentMethod · 0.45

Tested by

no test coverage detected