Add a method to customize the help message of a command

This commit is contained in:
Vincent Le Goff 2017-02-04 12:41:48 -08:00 committed by Griatch
parent dd516a290c
commit 602b3408aa
2 changed files with 25 additions and 2 deletions

View file

@ -221,7 +221,7 @@ class CmdHelp(Command):
match = [cmd for cmd in all_cmds if cmd == query]
if len(match) == 1:
formatted = self.format_help_entry(match[0].key,
match[0].__doc__,
match[0].get_help(caller, cmdset),
aliases=match[0].aliases,
suggested=suggestions)
self.msg_help(formatted)