mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-04 06:21:46 +00:00
check: more Highlander options, fixes #6269
This commit is contained in:
parent
afccb1dee5
commit
5d8986c440
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
import argparse
|
import argparse
|
||||||
from ._common import with_repository
|
from ._common import with_repository, Highlander
|
||||||
from ..archive import ArchiveChecker
|
from ..archive import ArchiveChecker
|
||||||
from ..constants import * # NOQA
|
from ..constants import * # NOQA
|
||||||
from ..helpers import EXIT_SUCCESS, EXIT_WARNING, EXIT_ERROR
|
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",
|
dest="max_duration",
|
||||||
type=int,
|
type=int,
|
||||||
default=0,
|
default=0,
|
||||||
|
action=Highlander,
|
||||||
help="do only a partial repo check for max. SECONDS seconds (Default: unlimited)",
|
help="do only a partial repo check for max. SECONDS seconds (Default: unlimited)",
|
||||||
)
|
)
|
||||||
define_archive_filters_group(subparser)
|
define_archive_filters_group(subparser)
|
||||||
|
|
Loading…
Reference in a new issue