Explorar o código

check: more Highlander options, fixes #6269

Thomas Waldmann %!s(int64=2) %!d(string=hai) anos
pai
achega
5d8986c440
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/borg/archiver/check_cmd.py

+ 2 - 1
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 @@ class CheckMixIn:
             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)