Skip to content

Commit

Permalink
fixup! Show an error when --dry-run & --stats are both used (fixes bo…
Browse files Browse the repository at this point in the history
  • Loading branch information
milkey-mouse committed Nov 10, 2017
1 parent 135396a commit 2f19f69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/borg/archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2739,10 +2739,10 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True):
help='create backup')
subparser.set_defaults(func=self.do_create)

group = subparser.add_mutually_exclusive_group()
group.add_argument('-n', '--dry-run', dest='dry_run', action='store_true',
dryrun_group = subparser.add_mutually_exclusive_group()
dryrun_group.add_argument('-n', '--dry-run', dest='dry_run', action='store_true',
help='do not create a backup archive')
group.add_argument('-s', '--stats', dest='stats', action='store_true',
dryrun_group.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

0 comments on commit 2f19f69

Please sign in to comment.