From 4dab6d29d8bd268e967ce4cb8068417ca6fbf5a0 Mon Sep 17 00:00:00 2001 From: Milkey Mouse Date: Tue, 21 Nov 2017 11:58:56 -0800 Subject: [PATCH] Clarify key aliases for borg list --format (fixes #3111) --- src/borg/helpers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/borg/helpers.py b/src/borg/helpers.py index 82e77a0ee..5a14d87b9 100644 --- a/src/borg/helpers.py +++ b/src/borg/helpers.py @@ -1647,20 +1647,20 @@ class BaseFormatter: class ArchiveFormatter(BaseFormatter): KEY_DESCRIPTIONS = { - 'name': 'archive name interpreted as text (might be missing non-text characters, see barchive)', 'archive': 'archive name interpreted as text (might be missing non-text characters, see barchive)', + 'name': 'alias of "archive"', 'barchive': 'verbatim archive name, can contain any character except NUL', 'comment': 'archive comment interpreted as text (might be missing non-text characters, see bcomment)', 'bcomment': 'verbatim archive comment, can contain any character except NUL', - 'time': 'time (start) of creation of the archive', # *start* is the key used by borg-info for this timestamp, this makes the formats more compatible 'start': 'time (start) of creation of the archive', + 'time': 'alias of "start"', 'end': 'time (end) of creation of the archive', 'id': 'internal ID of the archive', } KEY_GROUPS = ( - ('name', 'archive', 'barchive', 'comment', 'bcomment', 'id'), - ('time', 'start', 'end'), + ('archive', 'name', 'barchive', 'comment', 'bcomment', 'id'), + ('start', 'time', 'end'), ) @classmethod