Small change to allow stacking of cmd decorators

This commit is contained in:
Vgr E. Barry 2016-04-09 14:07:39 -04:00
parent d9b5c0fd55
commit e8aff5d0c3

View File

@ -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