Skip to content

Commit

Permalink
debug: 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 ffdd156 commit 6074ca4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/borg/archiver/debug_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from ..repository import Repository, LIST_SCAN_LIMIT, TAG_PUT, TAG_DELETE, TAG_COMMIT
from ..repoobj import RepoObj

from ._common import with_repository
from ._common import with_repository, Highlander
from ._common import process_epilog


Expand Down Expand Up @@ -521,16 +521,18 @@ def build_parser_debug(self, subparsers, common_parser, mid_common_parser):
"--segment",
metavar="SEG",
dest="segment",
default=None,
type=positive_int_validator,
default=None,
action=Highlander,
help="used together with --ghost: limit processing to given segment.",
)
subparser.add_argument(
"--offset",
metavar="OFFS",
dest="offset",
default=None,
type=positive_int_validator,
default=None,
action=Highlander,
help="used together with --ghost: limit processing to given offset.",
)

Expand All @@ -553,6 +555,7 @@ def build_parser_debug(self, subparsers, common_parser, mid_common_parser):
"wanted",
metavar="WANTED",
type=str,
action=Highlander,
help="term to search the repo for, either 0x1234abcd hex term or a string",
)
debug_id_hash_epilog = process_epilog(
Expand Down Expand Up @@ -631,6 +634,7 @@ def build_parser_debug(self, subparsers, common_parser, mid_common_parser):
dest="compression",
type=CompressionSpec,
default=CompressionSpec("lz4"),
action=Highlander,
help="select compression algorithm, see the output of the " '"borg help compression" command for details.',
)
subparser.add_argument(
Expand Down

0 comments on commit 6074ca4

Please sign in to comment.