From ee8d3a6287f3da56010d3e2a664648103c95ef82 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 29 Dec 2018 21:35:06 +0000 Subject: Remove an erroneous level of indentation that prevented the command being prepended to a usage string when only 1 usage string was available (commands.py) --- modules/commands.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/commands.py b/modules/commands.py index ee84df2b..34688d5a 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -251,9 +251,10 @@ class Module(ModuleManager.BaseModule): usage = hook.get_kwarg("usage", None) if not usage: usages = hook.docstring.var_items.get("usage", None) - if usages: - return " | ".join( - "%s %s" % (command, usage) for usage in usages) + + if usages: + return " | ".join( + "%s %s" % (command, usage) for usage in usages) return usage def _get_prefix(self, hook): -- cgit v1.3.1-10-gc9f91