From e8aff5d0c34fdcee96894145d2c4713dbc6518ed Mon Sep 17 00:00:00 2001 From: "Vgr E. Barry" Date: Sat, 9 Apr 2016 14:07:39 -0400 Subject: [PATCH] Small change to allow stacking of cmd decorators --- src/decorators.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/decorators.py b/src/decorators.py index f0119db..aefc26a 100644 --- a/src/decorators.py +++ b/src/decorators.py @@ -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