|
@@ -333,13 +333,13 @@ class ControllerPluginBase:
|
|
func = getattr(self, 'help_' + arg)
|
|
func = getattr(self, 'help_' + arg)
|
|
except AttributeError:
|
|
except AttributeError:
|
|
try:
|
|
try:
|
|
- doc=getattr(self, 'do_' + arg).__doc__
|
|
|
|
|
|
+ doc = getattr(self, 'do_' + arg).__doc__
|
|
if doc:
|
|
if doc:
|
|
- self.ctl.stdout.write("%s\n"%str(doc))
|
|
|
|
|
|
+ self.ctl.output(doc)
|
|
return
|
|
return
|
|
except AttributeError:
|
|
except AttributeError:
|
|
pass
|
|
pass
|
|
- self.ctl.stdout.write("%s\n"%str(self.ctl.nohelp % (arg,)))
|
|
|
|
|
|
+ self.ctl.output(self.ctl.nohelp % (arg,))
|
|
return
|
|
return
|
|
func()
|
|
func()
|
|
else:
|
|
else:
|
|
@@ -366,8 +366,8 @@ class ControllerPluginBase:
|
|
cmds_doc.append(cmd)
|
|
cmds_doc.append(cmd)
|
|
else:
|
|
else:
|
|
cmds_undoc.append(cmd)
|
|
cmds_undoc.append(cmd)
|
|
- self.ctl.stdout.write("\n")
|
|
|
|
- self.ctl.print_topics(self.doc_header, cmds_doc, 15,80)
|
|
|
|
|
|
+ self.ctl.output('')
|
|
|
|
+ self.ctl.print_topics(self.doc_header, cmds_doc, 15, 80)
|
|
|
|
|
|
class DefaultControllerPlugin(ControllerPluginBase):
|
|
class DefaultControllerPlugin(ControllerPluginBase):
|
|
name = 'default'
|
|
name = 'default'
|