Skip to content

Commit

Permalink
check: more Highlander options, fixes borgbackup#6269
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWaldmann committed Apr 6, 2023
1 parent afccb1d commit 5d8986c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/borg/archiver/check_cmd.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import argparse
from ._common import with_repository
from ._common import with_repository, Highlander
from ..archive import ArchiveChecker
from ..constants import * # NOQA
from ..helpers import EXIT_SUCCESS, EXIT_WARNING, EXIT_ERROR
Expand Down Expand Up @@ -176,6 +176,7 @@ def build_parser_check(self, subparsers, common_parser, mid_common_parser):
dest="max_duration",
type=int,
default=0,
action=Highlander,
help="do only a partial repo check for max. SECONDS seconds (Default: unlimited)",
)
define_archive_filters_group(subparser)

0 comments on commit 5d8986c

Please sign in to comment.