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

fix args.paths related argparsing, fixes #6994
This commit is contained in:
TW 2022-11-05 01:12:45 +01:00 committed by GitHub
commit 2ae41fd9e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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