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

Function _GetArgDescription

fire/helptext.py:568–573  ·  view source on GitHub ↗
(name, docstring_info)

Source from the content-addressed store, hash-verified

566
567
568def _GetArgDescription(name, docstring_info):
569 if docstring_info.args:
570 for arg_in_docstring in docstring_info.args:
571 if arg_in_docstring.name in (name, f'*{name}', f'**{name}'):
572 return arg_in_docstring.description
573 return None
574
575
576def _MakeUsageDetailsSection(action_group):

Callers 3

_ArgsAndFlagsSectionsFunction · 0.85
_CreateArgItemFunction · 0.85
_CreateFlagItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected