From 21f6f5d656efc3389a1471e89468838975e96e75 Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Mon, 14 Jul 2008 16:37:09 -0400 Subject: [PATCH] cmd_help: fall back to base help if the plugin doesn't provide any --- yap/yap.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/yap/yap.py b/yap/yap.py index d373509..558a52b 100644 --- a/yap/yap.py +++ b/yap/yap.py @@ -1168,10 +1168,15 @@ commits cannot be made. attr = self.__getattribute__(name) if not callable(attr): continue + try: short_msg = attr.short_help except AttributeError: - continue + try: + default_meth = super(Yap, self).__getattribute__(name) + short_msg = default_meth.short_help + except AttributeError: + continue name = name.replace('cmd_', '') name = name.replace('_', '-') -- 2.11.4.GIT