diff options
| author | Shawn O. Pearce <sop@google.com> | 2009-06-03 17:43:16 -0700 |
|---|---|---|
| committer | Shawn O. Pearce <sop@google.com> | 2011-01-09 17:39:22 -0800 |
| commit | c7c57e34dbcc58c38c565dc98cfea4bf7736560a (patch) | |
| tree | 96220b743f1db15eef8140ae8bf6ba2288f6584d /subcmds/help.py | |
| parent | 0d2b61f11d0501fcf1e5a1c19f18dac03e0b09bc (diff) | |
| download | git-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)
Diffstat (limited to 'subcmds/help.py')
| -rw-r--r-- | subcmds/help.py | 2 |
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 | ||
