borg diff: use proper validator for archive name (ARCHIVE2)

This commit is contained in:
Marian Beermann 2016-03-15 18:19:34 +01:00
parent 26fe2a35cd
commit 2f2d88b584
1 changed files with 1 additions and 1 deletions

View File

@ -1262,7 +1262,7 @@ class Archiver:
type=location_validator(archive=True),
help='archive')
subparser.add_argument('archive2', metavar='ARCHIVE2',
type=str,
type=archivename_validator(),
help='archive to compare with ARCHIVE1 (no repository location)')
subparser.add_argument('paths', metavar='PATH', nargs='*', type=str,
help='paths to compare; patterns are supported')