MCPcopy Index your code
hub / github.com/python/cpython / complete_help

Method complete_help

Lib/cmd.py:296–300  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

294 return dir(self.__class__)
295
296 def complete_help(self, *args):
297 commands = set(self.completenames(*args))
298 topics = set(a[5:] for a in self.get_names()
299 if a.startswith('help_' + args[0]))
300 return list(commands | topics)
301
302 def do_help(self, arg):
303 'List available commands with "help" or detailed help with "help cmd".'

Callers

nothing calls this directly

Calls 5

completenamesMethod · 0.95
get_namesMethod · 0.95
setFunction · 0.85
listClass · 0.85
startswithMethod · 0.45

Tested by

no test coverage detected