list: more Highlander options, fixes #6269

This commit is contained in:
Thomas Waldmann 2023-04-06 17:44:07 +02:00
parent 6074ca44d9
commit 644796ad6b
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -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}")',
)