Преглед на файлове

disallow --list with --progress, fixes #7219

Thomas Waldmann преди 2 години
родител
ревизия
bdc2dbfc08
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      src/borg/archiver/__init__.py

+ 2 - 0
src/borg/archiver/__init__.py

@@ -384,6 +384,8 @@ 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):
+            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:
                 parser.error("No command given.")