Răsfoiți Sursa

Merge pull request #7231 from ThomasWaldmann/list-or-progress

--list xor --progress
TW 2 ani în urmă
părinte
comite
f5d6a8d051
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      src/borg/archiver/__init__.py

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

@@ -383,7 +383,9 @@ class Archiver(
         parser.common_options.resolve(args)
         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``.")
+            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.")