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

Method no_groups

Lib/test/test_argparse.py:251–254  ·  view source on GitHub ↗

Add all arguments directly to the parser

(parser, argument_signatures)

Source from the content-addressed store, hash-verified

249 # functions for adding optional arguments
250 # ---------------------------------------
251 def no_groups(parser, argument_signatures):
252 """Add all arguments directly to the parser"""
253 for sig in argument_signatures:
254 parser.add_argument(*sig.args, **sig.kwargs)
255
256 def one_group(parser, argument_signatures):
257 """Add all arguments under a single group in the parser"""

Callers

nothing calls this directly

Calls 1

add_argumentMethod · 0.45

Tested by

no test coverage detected