diff options
| author | 2019-09-17 16:27:35 +0100 | |
|---|---|---|
| committer | 2019-09-17 16:27:35 +0100 | |
| commit | ebe772a5a9528ccf56f4082bb8fa1492296bdf6b (patch) | |
| tree | a6b07a57f9181bce59fab0b3fca376d383ba3263 /modules/help.py | |
| parent | only decode content-types in DECODE_CONTENT_TYPES (diff) | |
| signature | ||
be explicit when a command has no help available
Diffstat (limited to 'modules/help.py')
| -rw-r--r-- | modules/help.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/help.py b/modules/help.py index 31231d89..4ebd2a2a 100644 --- a/modules/help.py +++ b/modules/help.py @@ -38,7 +38,11 @@ class Module(ModuleManager.BaseModule): out = help if usage: out += ". Usage: %s" % usage - event["stdout"].write("%s: %s" % (command, out)) + + if out: + event["stdout"].write("%s: %s" % (command, out)) + else: + event["stderr"].write("No help for %s" % command) else: event["stdout"].write("I'm %s. use '%smodules' to list modules, " "'%scommands <module>' to list commands and " |
