diff options
| author | 2019-01-29 08:33:32 +0000 | |
|---|---|---|
| committer | 2019-01-29 08:33:32 +0000 | |
| commit | f97c1f02fd02738d8d2b0ba4db13e063eef81c96 (patch) | |
| tree | b23f8e3262c003cf6e3e4da54d39f64e1705809c | |
| parent | Show 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.py | 1 |
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] |
