MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / get_help_topics

Method get_help_topics

cmd2/cmd2.py:2759–2768  ·  view source on GitHub ↗

Return a list of help topics.

(self)

Source from the content-addressed store, hash-verified

2757 return Choices(items=items)
2758
2759 def get_help_topics(self) -> list[str]:
2760 """Return a list of help topics."""
2761 all_topics = [
2762 name[len(constants.HELP_FUNC_PREFIX) :]
2763 for name in self.get_names()
2764 if name.startswith(constants.HELP_FUNC_PREFIX) and callable(getattr(self, name))
2765 ]
2766
2767 # Filter out hidden and disabled commands
2768 return [topic for topic in all_topics if topic not in self.hidden_commands and topic not in self.disabled_commands]
2769
2770 def sigint_handler(
2771 self,

Callers 6

complete_help_commandMethod · 0.95
_build_command_infoMethod · 0.95
test_get_help_topicsFunction · 0.80
mainFunction · 0.80

Calls 1

get_namesMethod · 0.95

Tested by 3

test_get_help_topicsFunction · 0.64