comparison sat/plugins/plugin_misc_text_commands.py @ 2842:dbfedde9bc61

plugin text commands: typo
author Goffi <goffi@goffi.org>
date Sat, 09 Mar 2019 16:23:07 +0100
parents 003b8b4b56a7
children ab2696e34d29
comparison
equal deleted inserted replaced
2841:90115cf4e731 2842:dbfedde9bc61
85 - "doc_arg_[name]": the doc of [name] argument 85 - "doc_arg_[name]": the doc of [name] argument
86 """ 86 """
87 data = OrderedDict([("doc_short_help", ""), ("type", "all"), ("args", "")]) 87 data = OrderedDict([("doc_short_help", ""), ("type", "all"), ("args", "")])
88 docstring = cmd.__doc__ 88 docstring = cmd.__doc__
89 if docstring is None: 89 if docstring is None:
90 log.warning(u"Not docstring found for command {}".format(cmd_name)) 90 log.warning(u"No docstring found for command {}".format(cmd_name))
91 docstring = "" 91 docstring = ""
92 92
93 doc_data = docstring.split("\n") 93 doc_data = docstring.split("\n")
94 data["doc_short_help"] = doc_data[0] 94 data["doc_short_help"] = doc_data[0]
95 95