From 5d8986c440ad3bba07fc8928f068df6f8da55dec Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 6 Apr 2023 17:35:54 +0200 Subject: [PATCH] check: more Highlander options, fixes #6269 --- src/borg/archiver/check_cmd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/borg/archiver/check_cmd.py b/src/borg/archiver/check_cmd.py index 04fc0ee14..e63e86529 100644 --- a/src/borg/archiver/check_cmd.py +++ b/src/borg/archiver/check_cmd.py @@ -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 @@ -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)