be explicit when a command has no help available
This commit is contained in:
parent
98545a9fb4
commit
ebe772a5a9
1 changed files with 5 additions and 1 deletions
|
@ -38,7 +38,11 @@ class Module(ModuleManager.BaseModule):
|
|||
out = help
|
||||
if usage:
|
||||
out += ". Usage: %s" % usage
|
||||
|
||||
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 "
|
||||
|
|
Loading…
Reference in a new issue