From 60e679209a5495393ef584efaaad287fc8b77c51 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Wed, 3 Jun 2009 17:43:16 -0700 Subject: [PATCH] help: Don't show empty Summary or Description sections Signed-off-by: Shawn O. Pearce --- subcmds/help.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subcmds/help.py b/subcmds/help.py index 01d5fa23..e2f3074c 100644 --- a/subcmds/help.py +++ b/subcmds/help.py @@ -94,6 +94,8 @@ See 'repo help --all' for a complete list of recognized commands. body = getattr(cmd, bodyAttr) except AttributeError: return + if body == '' or body is None: + return self.nl()