Actually show the command prefix we now pass to _get_usage (commands.py)
This commit is contained in:
parent
79ff20b66a
commit
f97c1f02fd
1 changed files with 1 additions and 0 deletions
|
@ -260,6 +260,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
def _get_help(self, hook):
|
def _get_help(self, hook):
|
||||||
return hook.get_kwarg("help", None) or hook.docstring.description
|
return hook.get_kwarg("help", None) or hook.docstring.description
|
||||||
def _get_usage(self, hook, command, command_prefix=""):
|
def _get_usage(self, hook, command, command_prefix=""):
|
||||||
|
command = "%s%s" % (command_prefix, command)
|
||||||
usage = hook.get_kwarg("usage", None)
|
usage = hook.get_kwarg("usage", None)
|
||||||
if usage:
|
if usage:
|
||||||
usages = [usage]
|
usages = [usage]
|
||||||
|
|
Loading…
Reference in a new issue