Explorar o código

Merge pull request #7128 from ThomasWaldmann/fix-root-paths-1.2

fix args.paths related argparsing, fixes #6994
TW %!s(int64=2) %!d(string=hai) anos
pai
achega
2ae41fd9e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/borg/archiver.py

+ 1 - 1
src/borg/archiver.py

@@ -3614,7 +3614,7 @@ class Archiver:
         subparser.add_argument('location', metavar='ARCHIVE',
                                type=location_validator(archive=True),
                                help='name of archive to create (must be also a valid directory name)')
-        subparser.add_argument('paths', metavar='PATH', nargs='*', type=str,
+        subparser.add_argument('paths', metavar='PATH', nargs='*', type=str, action='extend',
                                help='paths to archive')
 
         # borg debug