mirror of
https://github.com/borgbackup/borg.git
synced 2026-02-20 00:10:35 -05:00
Make specifying paths when running create optional.
This commit is contained in:
parent
78ab5bd868
commit
f7e499ceaa
1 changed files with 2 additions and 2 deletions
|
|
@ -355,8 +355,8 @@ class Archiver(object):
|
|||
subparser.add_argument('archive', metavar='ARCHIVE',
|
||||
type=location_validator(archive=True),
|
||||
help='Archive to create')
|
||||
subparser.add_argument('paths', metavar='PATH', nargs='+', type=str,
|
||||
help='Paths to add to archive')
|
||||
subparser.add_argument('paths', metavar='PATH', nargs='*', type=str,
|
||||
default=['.'], help='Paths to add to archive')
|
||||
|
||||
subparser = subparsers.add_parser('extract', parents=[common_parser])
|
||||
subparser.set_defaults(func=self.do_extract)
|
||||
|
|
|
|||
Loading…
Reference in a new issue