- Edited
https://docs.godotengine.org/en/latest/classes/class_os.html#class-os-method-get-cmdline-args
If you run the exe with "--host --join=127.0.0.1" then arguments = {join:"127.0.0.1"} but I think it should be {host:"", join:"127.0.0.1"}.
I suggest this instead:
var arguments = {}
for argument in OS.get_cmdline_args():
if argument.find("=") > -1:
var key_value = argument.split("=")
arguments[key_value[0].lstrip("--")] = key_value[1]
else:
arguments[argument.lstrip("--")] = null