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:
@@ -80,7 +80,7 @@ def parse_args(
|
||||
arg = args[i]
|
||||
|
||||
if arg == "-link":
|
||||
if i + 1 < len(args) and is_url(args[i + 1]):
|
||||
if i + 1 < len(args):
|
||||
link = args[i + 1]
|
||||
i += 2
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user