Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/borg/archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3389,10 +3389,11 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True):
help='create backup')
subparser.set_defaults(func=self.do_create)

dryrun_group = subparser.add_mutually_exclusive_group()
dryrun_group.add_argument('-n', '--dry-run', dest='dry_run', action='store_true',
# note: --dry-run and --stats are mutually exclusive, but we do not want to abort when
# parsing, but rather proceed with the dry-run, but without stats (see run() method).
subparser.add_argument('-n', '--dry-run', dest='dry_run', action='store_true',
help='do not create a backup archive')
dryrun_group.add_argument('-s', '--stats', dest='stats', action='store_true',
subparser.add_argument('-s', '--stats', dest='stats', action='store_true',
help='print statistics for the created archive')

subparser.add_argument('--list', dest='output_list', action='store_true',
Expand Down