Small change to allow stacking of cmd decorators
This commit is contained in:
parent
d9b5c0fd55
commit
e8aff5d0c3
@ -97,6 +97,8 @@ class cmd:
|
||||
alias = True
|
||||
|
||||
def __call__(self, func):
|
||||
if isinstance(func, cmd):
|
||||
func = func.func
|
||||
self.func = func
|
||||
self.__doc__ = self.func.__doc__
|
||||
return self
|
||||
|
Loading…
Reference in New Issue
Block a user