Explorar o código

help: Don't show empty Summary or Description sections

Signed-off-by: Shawn O. Pearce <sop@google.com>
(cherry picked from commit 60e679209a5495393ef584efaaad287fc8b77c51)
Shawn O. Pearce %!s(int64=16) %!d(string=hai) anos
pai
achega
c7c57e34db
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      subcmds/help.py

+ 2 - 0
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()