From c7c57e34dbcc58c38c565dc98cfea4bf7736560a Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Wed, 3 Jun 2009 17:43:16 -0700 Subject: help: Don't show empty Summary or Description sections Signed-off-by: Shawn O. Pearce (cherry picked from commit 60e679209a5495393ef584efaaad287fc8b77c51) --- subcmds/help.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'subcmds/help.py') diff --git a/subcmds/help.py b/subcmds/help.py index c5979fd6..90b817db 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() -- cgit v1.2.3-54-g00ecf