Fix problem with -psn argument on macOS

This commit is contained in:
Francesco Abbate 2021-09-07 06:44:15 -07:00
parent 67d7b894ae
commit 2b277bb502
1 changed files with 4 additions and 1 deletions

View File

@ -461,7 +461,10 @@ function core.init()
project_dir = arg_filename project_dir = arg_filename
project_dir_explicit = true project_dir_explicit = true
else else
delayed_error = string.format("error: invalid file or directory %q", ARGS[i]) -- on macOS we can get an argument like "-psn_0_52353" that we just ignore.
if not ARGS[i]:match("^-psn") then
delayed_error = string.format("error: invalid file or directory %q", ARGS[i])
end
end end
end end