aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-28 11:53:31 +0000
committerGravatar jesopo2018-10-28 11:53:31 +0000
commit5553ac9e493ef70641fef660a2639b013ecf8455 (patch)
treed48b2bdefe04d4e0b2958ff7a3f680db4359ed4c /modules
parentSupport multiple "usage" values in commands.py (diff)
signature
Typo in modules/command.py, 'is' -> 'if'
Diffstat (limited to 'modules')
-rw-r--r--modules/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands.py b/modules/commands.py
index d2009ce2..972a6cdd 100644
--- a/modules/commands.py
+++ b/modules/commands.py
@@ -205,7 +205,7 @@ class Module(ModuleManager.BaseModule):
return hook.get_kwarg("help", None) or hook.docstring.description
def _get_usage(self, hook, command):
usage = hook.get_kwarg("usage", None)
- is not usage:
+ if not usage:
usages = hook.docstring.var_items.get("usage", None)
if usages:
return " | ".join(