INNER CODE UNIT · Python
do_help
neuml/codequestion · src/python/codequestion/console.py:88
def do_help(self, arg):
"""
Shows a help message.
Args:
arg: optional help message argument
"""
commands = {
".limit": "(number)\t\tset the maximum number of query rows to return",
".path": "(start) (end)\tprints a semantic path between questions",
".show": "(id)\t\tprint question with specified id",
".topics": "(query)\t\tshows topics best matching query. if query is empty, top topics are shown",
}
if arg in commands:
self.console.print(f"{arg} {commands[arg]}")
else: