fix: -link with any value sets link regardless of URL format

Previously, /update 2 -link s would clear the link and then parse
's' as a date. Now, any value after -link is used as the link,
regardless of whether it looks like a URL.
This commit is contained in:
shokollm
2026-04-04 23:42:15 +00:00
parent 7c238b44c8
commit 7b64da7897

View File

@@ -80,7 +80,7 @@ def parse_args(
arg = args[i] arg = args[i]
if arg == "-link": if arg == "-link":
if i + 1 < len(args) and is_url(args[i + 1]): if i + 1 < len(args):
link = args[i + 1] link = args[i + 1]
i += 2 i += 2
else: else: