mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
core: Add docstring to commands.wrap.
This commit is contained in:
parent
39b534246f
commit
75f19a9f50
@ -1039,6 +1039,13 @@ def wrap(f, specList=[], name=None, **kw):
|
||||
'function ;)')
|
||||
raise
|
||||
return utils.python.changeFunctionName(newf, name, f.__doc__)
|
||||
wrap.__doc__ = """Useful wrapper for plugin commands.
|
||||
|
||||
Valid converters are: %s.
|
||||
|
||||
:param f: A command, taking (self, irc, msg, args, ...) as arguments
|
||||
:param specList: A list of converters and contexts""" % \
|
||||
', '.join(sorted(wrappers.keys()))
|
||||
|
||||
__all__ = [
|
||||
# Contexts.
|
||||
|
Loading…
Reference in New Issue
Block a user