quote URLs in failure message hint output to make copy-pasting easier

This commit is contained in:
Nick Sweeting 2024-01-03 20:11:30 -08:00
parent db2984e47b
commit b9e05b2abe

View file

@ -413,7 +413,7 @@ def log_archive_method_finished(result: "ArchiveResult"):
"""
# Prettify CMD string and make it safe to copy-paste by quoting arguments
quoted_cmd = ' '.join(
'"{}"'.format(arg) if ' ' in arg else arg
'"{}"'.format(arg) if (' ' in arg) or (':' in arg) else arg
for arg in result.cmd
)