Skip to content

Commit 5efd124

Browse files
authored
Merge pull request #99300 from akien-mga/revert-pr98895
Revert "Warn on unknown command line arguments"
2 parents 6c05ec3 + 4d4407c commit 5efd124

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

main/main.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,13 +1801,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
18011801
} else if (arg == "--" || arg == "++") {
18021802
adding_user_args = true;
18031803
} else {
1804-
if (!FileAccess::exists(arg) && !DirAccess::exists(arg)) {
1805-
// Warn if the argument isn't recognized by Godot *and* the file/folder
1806-
// specified by a positional argument doesn't exist.
1807-
// This allows projects to read file or folder paths as a positional argument
1808-
// without printing a warning, as this scenario can't make use of user command line arguments.
1809-
WARN_PRINT(vformat("Unknown command line argument \"%s\". User arguments should be passed after a -- or ++ separator, e.g. \"-- %s\".", arg, arg));
1810-
}
18111804
main_args.push_back(arg);
18121805
}
18131806

0 commit comments

Comments
 (0)