mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-07-29 21:03:02 +02:00
Add the other supported args.
This commit is contained in:
@@ -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, )
|
||||
)
|
||||
|
||||
|
||||
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user