mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-18 04:11:57 +02:00
quote URLs in failure message hint output to make copy-pasting easier
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user