Add the other supported args.

This commit is contained in:
lingfish
2026-01-30 13:27:09 +11:00
parent 38cc5d4ee4
commit 06ebff878b
2 changed files with 20 additions and 10 deletions
+3 -9
View File
@@ -46,15 +46,6 @@ def diff(
+ (('--info',) if logger.getEffectiveLevel() == logging.INFO else ())
+ (('--debug', '--show-rc') if logger.isEnabledFor(logging.DEBUG) else ())
+ (('--patterns-from', patterns_file.name) if patterns_file else ())
+ (
(
'--list',
'--filter',
flags.make_list_filter_flags(local_borg_version, global_arguments.dry_run),
)
if config.get('list_details')
else ()
)
+ exclude_flags
+ (tuple(shlex.split(extra_borg_options)) if extra_borg_options else ())
+ (
@@ -76,6 +67,9 @@ def diff(
else flags.make_repository_flags(repository, local_borg_version)
)
)
+ (('--same-chunker-params', diff_arguments.timestamp) if diff_arguments.same_chunker_params else ())
+ (('--sort-by', diff_arguments.sort_by) if diff_arguments.sort_by else ())
+ (('--content-only', diff_arguments.content_only) if diff_arguments.content_only else ())
+ (diff_arguments.second_archive, )
)
+17 -1
View File
@@ -1990,7 +1990,23 @@ def make_parsers(schema, unparsed_arguments): # noqa: PLR0915
'--second-archive',
help='Second archive name, hash, or series to diff',
)
diff_group.add_argument(
'--numeric-ids',
help='Only consider numeric user and group identifiers',
)
diff_group.add_argument(
'--same-chunker-params',
help='Override check of chunker parameters'
)
diff_group.add_argument(
'--sort-by',
metavar='FIELD[,FIELD...]',
help='Advanced sorting: specify field(s) to sort by. Accepts a comma-separated list. Prefix with > for descending or < for ascending (default).'
)
diff_group.add_argument(
'--content-only',
help='Only compare differences in content (exclude metadata differences)'
)
borg_parser = action_parsers.add_parser(
'borg',
aliases=ACTION_ALIASES['borg'],