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>2009-07-03 11:00:16 -0700
commit60e679209a5495393ef584efaaad287fc8b77c51 (patch)
tree11aebc3d30a82685da22fe8b315cff15270a6ddf
parentf1a6b14fdc5402f9ed765a8a342d9c07c5b91e2d (diff)
downloadgit-repo-60e679209a5495393ef584efaaad287fc8b77c51.tar.gz
help: Don't show empty Summary or Description sections
Signed-off-by: Shawn O. Pearce <sop@google.com>
-rw-r--r--subcmds/help.py2
1 files changed, 2 insertions, 0 deletions
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.
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