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

Function _CreateItem

fire/helptext.py:560–565  ·  view source on GitHub ↗
(name, description, indent=2)

Source from the content-addressed store, hash-verified

558
559
560def _CreateItem(name, description, indent=2):
561 if not description:
562 return name
563 description = formatting.Indent(description, indent)
564 return f"""{name}
565{description}"""
566
567
568def _GetArgDescription(name, docstring_info):

Callers 6

_ArgsAndFlagsSectionsFunction · 0.85
_CreateArgItemFunction · 0.85
_CreateFlagItemFunction · 0.85
_MakeUsageDetailsSectionFunction · 0.85
_NewChoicesSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected