浏览代码

list: more Highlander options, fixes #6269

Thomas Waldmann 2 年之前
父节点
当前提交
644796ad6b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/borg/archiver/list_cmd.py

+ 2 - 1
src/borg/archiver/list_cmd.py

@@ -2,7 +2,7 @@ import argparse
 import textwrap
 import sys
 
-from ._common import with_repository, build_matcher
+from ._common import with_repository, build_matcher, Highlander
 from ..archive import Archive
 from ..cache import Cache
 from ..constants import *  # NOQA
@@ -105,6 +105,7 @@ class ListMixIn:
             "--format",
             metavar="FORMAT",
             dest="format",
+            action=Highlander,
             help="specify format for file listing "
             '(default: "{mode} {user:6} {group:6} {size:8} {mtime} {path}{extra}{NL}")',
         )