mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-22 14:11:27 +00:00
remove deprecated option: --list-format
replaced by: --format
This commit is contained in:
parent
933e82a49c
commit
c87393cab7
2 changed files with 0 additions and 3 deletions
|
@ -2266,7 +2266,6 @@ def do_subcommand_help(self, parser, args):
|
|||
def preprocess_args(self, args):
|
||||
deprecations = [
|
||||
# ('--old', '--new' or None, 'Warning: "--old" has been deprecated. Use "--new" instead.'),
|
||||
('--list-format', '--format', 'Warning: "--list-format" has been deprecated. Use "--format" instead.'),
|
||||
('--ignore-inode', None, 'Warning: "--ignore-inode" has been deprecated. Use "--files-cache=ctime,size" or "...=mtime,size" instead.'),
|
||||
('--no-files-cache', None, 'Warning: "--no-files-cache" has been deprecated. Use "--files-cache=disabled" instead.'),
|
||||
]
|
||||
|
|
|
@ -1886,8 +1886,6 @@ def test_list_format(self):
|
|||
self.cmd('init', '--encryption=repokey', self.repository_location)
|
||||
test_archive = self.repository_location + '::test'
|
||||
self.cmd('create', test_archive, src_dir)
|
||||
output_warn = self.cmd('list', '--list-format', '-', test_archive)
|
||||
self.assert_in('--list-format" has been deprecated.', output_warn)
|
||||
output_1 = self.cmd('list', test_archive)
|
||||
output_2 = self.cmd('list', '--format', '{mode} {user:6} {group:6} {size:8d} {mtime} {path}{extra}{NEWLINE}', test_archive)
|
||||
output_3 = self.cmd('list', '--format', '{mtime:%s} {path}{NL}', test_archive)
|
||||
|
|
Loading…
Reference in a new issue