From a19310019fbb3dd4b9d572c394d17b4b6ba1812c Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Sun, 24 Aug 2008 16:11:57 -0400 Subject: [PATCH] cmd_help: use get_attr to find the usage for a command Without this command that are overridden by plugins would not have their help displayed properly. Closes: #27bd1a6fc1ce6eabd91ce9f7856a34d0b66c165e --- yap/yap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yap/yap.py b/yap/yap.py index 7d0236b..a6f0e8b 100644 --- a/yap/yap.py +++ b/yap/yap.py @@ -1305,7 +1305,8 @@ commits cannot be made. raise YapError("Sorry, no help for '%s'. Ask Steven." % cmd) print >>sys.stderr, "The '%s' command" % oldcmd - print >>sys.stderr, "\tyap %s %s" % (oldcmd, attr.__doc__) + doc = self._get_attr(cmd, "__doc__") + print >>sys.stderr, "\tyap %s %s" % (oldcmd, doc) print >>sys.stderr, "%s" % help return -- 2.11.4.GIT