MCPcopy
hub / github.com/google/python-fire / _CreateKeywordOnlyFlagItem

Function _CreateKeywordOnlyFlagItem

fire/helptext.py:170–173  ·  view source on GitHub ↗
(flag, docstring_info, spec, short_arg)

Source from the content-addressed store, hash-verified

168
169
170def _CreateKeywordOnlyFlagItem(flag, docstring_info, spec, short_arg):
171 return _CreateFlagItem(
172 flag, docstring_info, spec, required=flag not in spec.kwonlydefaults,
173 short_arg=short_arg)
174
175
176def _GetShortFlags(flags):

Callers 1

_ArgsAndFlagsSectionsFunction · 0.85

Calls 1

_CreateFlagItemFunction · 0.85

Tested by

no test coverage detected