diff options
| author | 2018-10-28 11:53:31 +0000 | |
|---|---|---|
| committer | 2018-10-28 11:53:31 +0000 | |
| commit | 5553ac9e493ef70641fef660a2639b013ecf8455 (patch) | |
| tree | d48b2bdefe04d4e0b2958ff7a3f680db4359ed4c | |
| parent | Support multiple "usage" values in commands.py (diff) | |
| signature | ||
Typo in modules/command.py, 'is' -> 'if'
| -rw-r--r-- | modules/commands.py | 2 |
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( |
