We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0dabe6 commit 6b0badcCopy full SHA for 6b0badc
src/borg/archiver/__init__.py
@@ -180,7 +180,8 @@ def preprocess_args(self, args):
180
]
181
for i, arg in enumerate(args[:]):
182
for old_name, new_name, warning in deprecations:
183
- if arg.startswith(old_name):
+ # either --old_name or --old_name=...
184
+ if arg == old_name or (arg.startswith(old_name) and arg[len(old_name)] == "="):
185
if new_name is not None:
186
args[i] = arg.replace(old_name, new_name)
187
print(warning, file=sys.stderr)
0 commit comments