##// END OF EJS Templates
wireproto: improve docstring for @wireprotocommand...
Gregory Szorc -
r35998:b4976912 default
parent child Browse files
Show More
@@ -638,7 +638,13 b' def supportedcompengines(ui, proto, role'
638 638 commands = {}
639 639
640 640 def wireprotocommand(name, args=''):
641 """decorator for wire protocol command"""
641 """Decorator to declare a wire protocol command.
642
643 ``name`` is the name of the wire protocol command being provided.
644
645 ``args`` is a space-delimited list of named arguments that the command
646 accepts. ``*`` is a special value that says to accept all arguments.
647 """
642 648 def register(func):
643 649 commands[name] = (func, args)
644 650 return func
General Comments 0
You need to be logged in to leave comments. Login now