mirror of https://github.com/borgbackup/borg.git
Make specifying paths when running create optional.
This commit is contained in:
parent
78ab5bd868
commit
f7e499ceaa
|
@ -355,8 +355,8 @@ class Archiver(object):
|
||||||
subparser.add_argument('archive', metavar='ARCHIVE',
|
subparser.add_argument('archive', metavar='ARCHIVE',
|
||||||
type=location_validator(archive=True),
|
type=location_validator(archive=True),
|
||||||
help='Archive to create')
|
help='Archive to create')
|
||||||
subparser.add_argument('paths', metavar='PATH', nargs='+', type=str,
|
subparser.add_argument('paths', metavar='PATH', nargs='*', type=str,
|
||||||
help='Paths to add to archive')
|
default=['.'], help='Paths to add to archive')
|
||||||
|
|
||||||
subparser = subparsers.add_parser('extract', parents=[common_parser])
|
subparser = subparsers.add_parser('extract', parents=[common_parser])
|
||||||
subparser.set_defaults(func=self.do_extract)
|
subparser.set_defaults(func=self.do_extract)
|
||||||
|
|
Loading…
Reference in New Issue