diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2024-11-16 12:35:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-16 12:35:45 +0100 |
commit | 5efd124ca10bf46df62fa2441d80589777e54a5a (patch) | |
tree | cebc00c321d5f9b2bb2e77a512014286d2b6d4e3 /main/main.cpp | |
parent | 6c05ec3d6732cac44cf85c91db7d3fd1075bcb23 (diff) | |
parent | 4d4407ce5aeca700f1da449698ced4e22b50d369 (diff) | |
download | redot-engine-5efd124ca10bf46df62fa2441d80589777e54a5a.tar.gz |
Merge pull request #99300 from akien-mga/revert-pr98895
Revert "Warn on unknown command line arguments"
Diffstat (limited to 'main/main.cpp')
-rw-r--r-- | main/main.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/main/main.cpp b/main/main.cpp index 0a905f16ca..2c41acef8b 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1801,13 +1801,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph } else if (arg == "--" || arg == "++") { adding_user_args = true; } else { - if (!FileAccess::exists(arg) && !DirAccess::exists(arg)) { - // Warn if the argument isn't recognized by Godot *and* the file/folder - // specified by a positional argument doesn't exist. - // This allows projects to read file or folder paths as a positional argument - // without printing a warning, as this scenario can't make use of user command line arguments. - WARN_PRINT(vformat("Unknown command line argument \"%s\". User arguments should be passed after a -- or ++ separator, e.g. \"-- %s\".", arg, arg)); - } main_args.push_back(arg); } |