godot/main
Hugo Locurcio 8379cc85aa
Warn on unknown command line arguments
This eases troubleshooting when working with command line arguments.

Warnings are only printed if the argument does not exist as a file
or directory path (relative or absolute). This allows positional arguments
to keep working as they are now, without printing warnings when a project
reads positional arguments to perform operations on files (e.g. when
drag-and-dropping a file onto a project executable).

This now prints a warning:

    godot --non-existent-argument

This still doesn't print a warning, as it's an user argument:

    godot -- --non-existent-argument

This doesn't print a warning if the file/folder path exists:

    godot /path/to/file.txt

A warning is still printed if the file/folder doesn't exist. Drag-and-drop
associations always refer to existing files/folders, so that scenario was
unlikely to be encountered.
2024-11-06 15:01:40 +01:00
..
app_icon.png
main_builders.py SCons: Remove run_in_subprocess dependency 2024-03-11 13:20:09 -05:00
main_timer_sync.cpp Fixed Timestep Interpolation (3D) 2024-07-07 22:15:23 +02:00
main_timer_sync.h Add frame delta smoothing option (4.x) 2023-05-16 13:57:25 +01:00
main.cpp Warn on unknown command line arguments 2024-11-06 15:01:40 +01:00
main.h Cleanup Android input on render thread settings 2024-07-09 09:15:18 -07:00
performance.cpp Implement asynchronous transfer queues, thread guards on RenderingDevice. Add ubershaders and rework pipeline caches for Forward+ and Mobile. 2024-10-02 15:11:58 -03:00
performance.h Implement asynchronous transfer queues, thread guards on RenderingDevice. Add ubershaders and rework pipeline caches for Forward+ and Mobile. 2024-10-02 15:11:58 -03:00
SCsub SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
splash.png
steam_tracker.cpp Enable optional minimal SteamAPI integration for usage time tracking (editor only). 2024-05-31 11:01:02 +03:00
steam_tracker.h Enable optional minimal SteamAPI integration for usage time tracking (editor only). 2024-05-31 11:01:02 +03:00