Actually show the command prefix we now pass to _get_usage (commands.py)

This commit is contained in:
jesopo 2019-01-29 08:33:32 +00:00
parent 79ff20b66a
commit f97c1f02fd

View file

@ -260,6 +260,7 @@ class Module(ModuleManager.BaseModule):
def _get_help(self, hook):
return hook.get_kwarg("help", None) or hook.docstring.description
def _get_usage(self, hook, command, command_prefix=""):
command = "%s%s" % (command_prefix, command)
usage = hook.get_kwarg("usage", None)
if usage:
usages = [usage]