summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-06-03 17:43:16 -0700
committerShawn O. Pearce <sop@google.com>2011-01-09 17:39:22 -0800
commitc7c57e34dbcc58c38c565dc98cfea4bf7736560a (patch)
tree96220b743f1db15eef8140ae8bf6ba2288f6584d
parent0d2b61f11d0501fcf1e5a1c19f18dac03e0b09bc (diff)
downloadgit-repo-c7c57e34dbcc58c38c565dc98cfea4bf7736560a.tar.gz
help: Don't show empty Summary or Description sections
Signed-off-by: Shawn O. Pearce <sop@google.com> (cherry picked from commit 60e679209a5495393ef584efaaad287fc8b77c51)
-rw-r--r--subcmds/help.py2
1 files changed, 2 insertions, 0 deletions
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.
94 body = getattr(cmd, bodyAttr) 94 body = getattr(cmd, bodyAttr)
95 except AttributeError: 95 except AttributeError:
96 return 96 return
97 if body == '' or body is None:
98 return
97 99
98 self.nl() 100 self.nl()
99 101