소스 검색

Merge pull request #7334 from ThomasWaldmann/list-progress-json-is-nice

allow mixing --progress and --list in log-json mode
TW 2 년 전
부모
커밋
f39d1bcd7b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/borg/archiver/__init__.py

+ 1 - 1
src/borg/archiver/__init__.py

@@ -383,7 +383,7 @@ class Archiver(
         func = get_func(args)
         if func == self.do_create and args.paths and args.paths_from_stdin:
             parser.error("Must not pass PATH with --paths-from-stdin.")
-        if args.progress and getattr(args, "output_list", False):
+        if args.progress and getattr(args, "output_list", False) and not args.log_json:
             parser.error("Options --progress and --list do not play nicely together.")
         if func == self.do_create and not args.paths:
             if args.content_from_command or args.paths_from_command: