소스 검색

Don't print help in "--log"

The user explicitly asked for a log and thus knows what he is doing.
Steven Myint 11 년 전
부모
커밋
590fe00549
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    2
      cdiff.py

+ 1
- 2
cdiff.py 파일 보기

@@ -600,8 +600,7 @@ def main():
600 600
         diff_hdl = revision_control_log()
601 601
         if not diff_hdl:
602 602
             sys.stderr.write(('*** Not in a supported workspace, supported '
603
-                              'are: %s\n\n') % ', '.join(supported_vcs))
604
-            parser.print_help()
603
+                              'are: %s\n') % ', '.join(supported_vcs))
605 604
             return 1
606 605
     elif len(args) > 2:
607 606
         parser.print_help()