aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-29 08:33:32 +0000
committerGravatar jesopo2019-01-29 08:33:32 +0000
commitf97c1f02fd02738d8d2b0ba4db13e063eef81c96 (patch)
treeb23f8e3262c003cf6e3e4da54d39f64e1705809c
parentShow command prefix in usage strings (commands.py) (diff)
signature
Actually show the command prefix we now pass to _get_usage (commands.py)
-rw-r--r--modules/commands.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/commands.py b/modules/commands.py
index c3173486..b5ac3176 100644
--- a/modules/commands.py
+++ b/modules/commands.py
@@ -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]