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

Method no_groups

Lib/test/test_argparse.py:231–234  ·  view source on GitHub ↗

Add all arguments directly to the parser

(parser, argument_signatures)

Source from the content-addressed store, hash-verified

229 # functions for adding optional arguments
230 # ---------------------------------------
231 def no_groups(parser, argument_signatures):
232 """Add all arguments directly to the parser"""
233 for sig in argument_signatures:
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"""

Callers

nothing calls this directly

Calls 1

add_argumentMethod · 0.45

Tested by

no test coverage detected