소스 검색

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 16 년 전
부모
커밋
c7c57e34db
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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()