From f2ea757fadffaa79d6f86a6322d328fa96f58626 Mon Sep 17 00:00:00 2001 From: Andrey Bienkowski Date: Tue, 7 Dec 2021 12:45:42 +0000 Subject: [PATCH] Remove --list-format from borg list While reading the docs I noticed that in `borg list` the options --list-format and --format do the same thing. Using `git log -S` I have uncovered that --list-format used to be deprecated and was supposed to be removed in c87393cab736d30a3c138f5f694c8cc0c8ca6ccc, but you overlooked it and undeprecated it instead. What should we do now? Just remove it or deprecate it again? --- src/borg/archiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index daae7e782..bc6f8c3a7 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -4245,7 +4245,7 @@ class Archiver: help='Show checkpoint archives in the repository contents list (default: hidden).') subparser.add_argument('--short', dest='short', action='store_true', help='only print file/directory names, nothing else') - subparser.add_argument('--format', '--list-format', metavar='FORMAT', dest='format', + subparser.add_argument('--format', metavar='FORMAT', dest='format', help='specify format for file listing ' '(default: "{mode} {user:6} {group:6} {size:8d} {mtime} {path}{extra}{NL}")') subparser.add_argument('--json', action='store_true',