From 75f19a9f50636d21978730825ceb1b8fe4b04b12 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 1 Feb 2013 20:38:18 +0100 Subject: [PATCH] core: Add docstring to commands.wrap. --- src/commands.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/commands.py b/src/commands.py index 564620985..d245a9a46 100644 --- a/src/commands.py +++ b/src/commands.py @@ -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.