commit | c7c57e34dbcc58c38c565dc98cfea4bf7736560a | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Wed Jun 03 17:43:16 2009 -0700 |
committer | Shawn O. Pearce <sop@google.com> | Sun Jan 09 17:39:22 2011 -0800 |
tree | 96220b743f1db15eef8140ae8bf6ba2288f6584d | |
parent | 0d2b61f11d0501fcf1e5a1c19f18dac03e0b09bc [diff] |
help: Don't show empty Summary or Description sections Signed-off-by: Shawn O. Pearce <sop@google.com> (cherry picked from commit 60e679209a5495393ef584efaaad287fc8b77c51)
diff --git a/subcmds/help.py b/subcmds/help.py index c5979fd..90b817d 100644 --- a/subcmds/help.py +++ b/subcmds/help.py
@@ -94,6 +94,8 @@ body = getattr(cmd, bodyAttr) except AttributeError: return + if body == '' or body is None: + return self.nl()