Add a method to customize the help message of a command
This commit is contained in:
parent
dd516a290c
commit
602b3408aa
2 changed files with 25 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue