MCPcopy
hub / github.com/django/django / get_actions

Function get_actions

django/core/management/__init__.py:137–144  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

135 parse_args.append(str(arg))
136
137 def get_actions(parser):
138 # Parser actions and actions from sub-parser choices.
139 for opt in parser._actions:
140 if isinstance(opt, _SubParsersAction):
141 for sub_opt in opt.choices.values():
142 yield from get_actions(sub_opt)
143 else:
144 yield opt
145
146 parser_actions = list(get_actions(parser))
147 mutually_exclusive_required_options = {

Callers 1

call_commandFunction · 0.85

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected