Godot Engine – Multi-platform 2D and 3D game engine
Sync --help output with manpage and shell completion scripts
Rémi Verschelde6494364b8790
diff --git a/main/main.cpp b/main/main.cppindex 7d0608a73c6..50e520a5894 100644--- a/main/main.cpp+++ b/main/main.cpp@@ -298,8 +298,8 @@ static const String NULL_AUDIO_DRIVER("Dummy");// The length of the longest column in the command-line help we should align to// (excluding the 2-space left and right margins).-// Currently, this is `--export-release <preset> <path>`.-static const int OPTION_COLUMN_LENGTH = 32;+// Currently, this is `--dump-gdextension-interface-json`.+static const int OPTION_COLUMN_LENGTH = 33;/* Helper methods */@@ -532,10 +532,10 @@ void Main::print_help(const char *p_binary) {#elseprint_help_option("--render-thread <mode>", "Render thread mode (\"unsafe\" [deprecated], \"safe\", \"separate\").\n");#endif // DISABLE_DEPRECATED-#if defined(DEBUG_ENABLED) || defined(TOOLS_ENABLED)+#ifdef DEBUG_ENABLEDprint_help_option("--remote-fs <address>", "Remote filesystem (<host/IP>[:<port>] address).\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);print_help_option("--remote-fs-password <password>", "Password for remote filesystem.\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);-#endif // defined(DEBUG_ENABLED) || defined (TOOLS_ENABLED)+#endif // DEBUG_ENABLEDprint_help_option("--audio-driver <driver>", "Audio driver [");for (int i = 0; i < AudioDriverManager::get_driver_count(); i++) {@@ -587,19 +587,20 @@ void Main::print_help(const char *p_binary) {print_help_option("--position <X>,<Y>", "Request window position.\n");print_help_option("--screen <N>", "Request window screen.\n");print_help_option("--single-window", "Use a single window (no separate subwindows).\n");-#ifndef _3D_DISABLED+#ifndef XR_DISABLEDprint_help_option("--xr-mode <mode>", "Select XR (Extended Reality) mode [\"default\", \"off\", \"on\"].\n");-#endif+#endif // XR_DISABLEDprint_help_option("--wid <window_id>", "Request parented to window.\n");print_help_option("--accessibility <mode>", "Select accessibility mode ['auto' (when screen reader is running, default), 'always', 'disabled'].\n");print_help_option("--accessibility-driver <driver>", "Select accessibility driver ['accesskit', 'dummy'].\n");print_help_title("Debug options");#ifdef DEBUG_ENABLED- print_help_option("-d, --debug", "Debug (local stdout debugger).\n");- print_help_option("-b, --breakpoints", "Breakpoint list as source:line comma-separated pairs, no spaces (use %%20 instead).\n");- print_help_option("--ignore-error-breaks", "If debugger is connected, prevents sending error breakpoints.\n");- print_help_option("--profiling", "Enable profiling in the script debugger.\n");+ print_help_option("-d, --debug", "Debug (local stdout debugger).\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);+ print_help_option("-b, --breakpoints <list>", "Breakpoint list as source:line comma-separated pairs, no spaces (use %20 instead).\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);+ print_help_option("--skip-breakpoints", "If debugger is connected, skips all breakpoints.\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);+ print_help_option("--ignore-error-breaks", "If debugger is connected, prevents sending error breakpoints.\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);+ print_help_option("--profiling", "Enable profiling in the script debugger.\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);#endifprint_help_option("--gpu-profile", "Show a GPU profile of the tasks that took the most time during frame rendering.\n");print_help_option("--gpu-validation", "Enable graphics API validation layers for debugging.\n");@@ -609,21 +610,18 @@ void Main::print_help(const char *p_binary) {print_help_option("--generate-spirv-debug-info", "Generate SPIR-V debug information (Vulkan only). This allows source-level shader debugging with RenderDoc.\n");print_help_option("--clear-shader-cache", "Clear the shader_cache directory at launch, so it's re-generated.\n");#if defined(DEBUG_ENABLED) || defined(DEV_ENABLED)- print_help_option("--extra-gpu-memory-tracking", "Enables additional memory tracking (see class reference for `RenderingDevice.get_driver_and_device_memory_report()` and linked methods). Currently only implemented for Vulkan. Enabling this feature may cause crashes on some systems due to buggy drivers or bugs in the Vulkan Loader. See https://github.com/godotengine/godot/issues/95967\n");- print_help_option("--accurate-breadcrumbs", "Force barriers between breadcrumbs. Useful for narrowing down a command causing GPU resets. Currently only implemented for Vulkan.\n");+ print_help_option("--extra-gpu-memory-tracking", "Enables additional memory tracking (see class reference for `RenderingDevice.get_driver_and_device_memory_report()` and linked methods). Currently only implemented for Vulkan. Enabling this feature may cause crashes on some systems due to buggy drivers or bugs in the Vulkan Loader. See https://github.com/godotengine/godot/issues/95967\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);+ print_help_option("--accurate-breadcrumbs", "Force barriers between breadcrumbs. Useful for narrowing down a command causing GPU resets. Currently only implemented for Vulkan.\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);#endif-#if defined(DEBUG_ENABLED) || defined(TOOLS_ENABLED)- print_help_option("--remote-debug <uri>", "Remote debug (<protocol>://<host/IP>[:<port>], e.g. tcp://127.0.0.1:6007).\n");-#endif- print_help_option("--single-threaded-scene", "Force scene tree to run in single-threaded mode. Sub-thread groups are disabled and run on the main thread.\n");#ifdef DEBUG_ENABLED+ print_help_option("--remote-debug <uri>", "Remote debug (<protocol>://<host/IP>[:<port>], e.g. tcp://127.0.0.1:6007).\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);print_help_option("--debug-collisions", "Show collision shapes when running the scene.\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);print_help_option("--debug-paths", "Show path lines when running the scene.\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);print_help_option("--debug-navigation", "Show navigation polygons when running the scene.\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);print_help_option("--debug-avoidance", "Show navigation avoidance debug visuals when running the scene.\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);print_help_option("--debug-stringnames", "Print all StringName allocations to stdout when the engine quits.\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);print_help_option("--debug-canvas-item-redraw", "Display a rectangle each time a canvas item requests a redraw (useful to troubleshoot low processor mode).\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);-+ print_help_option("--debug-mute-audio", "Mute all audio output when running the scene.\n", CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG);#endifprint_help_option("--max-fps <fps>", "Set a maximum number of frames per second rendered (can be used to limit power usage). A value of 0 results in unlimited framerate.\n");print_help_option("--frame-delay <ms>", "Simulate high CPU load (delay each frame by <ms> milliseconds). Do not use as a FPS limiter; use --max-fps instead.\n");@@ -635,6 +633,7 @@ void Main::print_help(const char *p_binary) {print_help_option("--delta-smoothing <enable>", "Enable or disable frame delta smoothing [\"enable\", \"disable\"].\n");print_help_option("--print-fps", "Print the frames per second to the stdout.\n");#ifdef TOOLS_ENABLED+ print_help_option("--single-threaded-scene", "Force scene tree to run in single-threaded mode. Sub-thread groups are disabled and run on the main thread.\n", CLI_OPTION_AVAILABILITY_EDITOR);print_help_option("--editor-pseudolocalization", "Enable pseudolocalization for the editor and the project manager.\n", CLI_OPTION_AVAILABILITY_EDITOR);#endif@@ -1065,7 +1064,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_phString audio_driver = "";String project_path = ".";-#if defined(DEBUG_ENABLED) || defined(TOOLS_ENABLED)+#ifdef DEBUG_ENABLEDString debug_uri = "";bool skip_breakpoints = false;bool ignore_error_breaks = false;@@ -1082,7 +1081,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_phint separate_thread_render = -1; // Tri-state: -1 = not set, 0 = false, 1 = true.bool clear_shader_cache = false;-#if defined(DEBUG_ENABLED) || defined(TOOLS_ENABLED)+#ifdef DEBUG_ENABLEDString remotefs;String remotefs_pass;#endif@@ -1504,7 +1503,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph}} else if (arg == "--remote-fs") { // remote filesystem-#if defined(DEBUG_ENABLED) || defined(TOOLS_ENABLED)+#ifdef DEBUG_ENABLEDif (N) {remotefs = N->get();N = N->next();@@ -1516,10 +1515,10 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_phERR_PRINT("`--remote-fs` was specified on the command line, but this Godot binary was compiled without debug. Aborting.\n""To be able to use it, use the `target=template_debug` SCons option when compiling Godot.\n");-#endif // defined(DEBUG_ENABLED) || defined (TOOLS_ENABLED)+#endif // DEBUG_ENABLED} else if (arg == "--remote-fs-password") { // remote filesystem password-#if defined(DEBUG_ENABLED) || defined(TOOLS_ENABLED)+#ifdef DEBUG_ENABLEDif (N) {remotefs_pass = N->get();N = N->next();@@ -1532,7 +1531,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph"`--remote-fs-password` was specified on the command line, but this Godot binary was compiled without debug. Aborting.\n""To be able to use it, use the `target=template_debug` SCons option when compiling Godot.\n");goto error;-#endif // defined(DEBUG_ENABLED) || defined (TOOLS_ENABLED)+#endif // DEBUG_ENABLED} else if (arg == "--render-thread") { // render thread modeif (N) {@@ -1787,7 +1786,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph"To be able to use it, use the `disable_path_overrides=no` SCons option when compiling Godot.\n");goto error;#endif // defined(OVERRIDE_PATH_ENABLED)-#if defined(DEBUG_ENABLED) || defined(TOOLS_ENABLED)+#ifdef DEBUG_ENABLED} else if (arg == "-b" || arg == "--breakpoints") { // add breakpointsif (N) {@@ -1798,7 +1797,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_phOS::get_singleton()->print("Missing list of breakpoints, aborting.\n");goto error;}-#endif // defined(DEBUG_ENABLED) || defined (TOOLS_ENABLED)+#endif // DEBUG_ENABLED} else if (arg == "--max-fps") { // set maximum rendered FPSif (N) {@@ -1863,7 +1862,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph#endif // defined(OVERRIDE_PATH_ENABLED) || defined(WEB_ENABLED) || defined(ANDROID_ENABLED)} else if (arg == "-d" || arg == "--debug") {-#if defined(DEBUG_ENABLED) || defined(TOOLS_ENABLED)+#ifdef DEBUG_ENABLEDdebug_uri = "local://";OS::get_singleton()->_debug_stdout = true;#else@@ -1895,7 +1894,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_phtest_rd_creation = true;#endif // defined(TOOLS_ENABLED) && (defined(WINDOWS_ENABLED) || defined(LINUXBSD_ENABLED))} else if (arg == "--remote-debug") {-#if defined(DEBUG_ENABLED) || defined(TOOLS_ENABLED)+#ifdef DEBUG_ENABLEDif (N) {debug_uri = N->get();if (!debug_uri.contains("://")) { // wrong address@@ -1913,7 +1912,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph"`--remote-debug` was specified on the command line, but this Godot binary was compiled without debug. Aborting.\n""To be able to use it, use the `target=template_debug` SCons option when compiling Godot.\n");goto error;-#endif // defined(DEBUG_ENABLED) || defined (TOOLS_ENABLED)+#endif // DEBUG_ENABLED#ifdef TOOLS_ENABLED} else if (arg == "--editor-pid") { // not exposed to userif (N) {@@ -1959,12 +1958,12 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_phprofile_gpu = true;} else if (arg == "--disable-crash-handler") {OS::get_singleton()->disable_crash_handler();-#if defined(DEBUG_ENABLED) || defined(TOOLS_ENABLED)+#ifdef DEBUG_ENABLED} else if (arg == "--skip-breakpoints") {skip_breakpoints = true;} else if (I->get() == "--ignore-error-breaks") {ignore_error_breaks = true;-#endif // defined(DEBUG_ENABLED) || defined(TOOLS_ENABLED)+#endif // DEBUG_ENABLED#ifndef XR_DISABLED} else if (arg == "--xr-mode") {if (N) {@@ -2068,7 +2067,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph}#endif-#if defined(DEBUG_ENABLED) || defined(TOOLS_ENABLED)+#ifdef DEBUG_ENABLED// Network file system needs to be configured before globals, since globals are based on the// 'project.godot' file which will only be available through the network if this is enabledif (!remotefs.is_empty()) {@@ -2086,7 +2085,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_phgoto error;}}-#endif // defined(DEBUG_ENABLED) || defined (TOOLS_ENABLED)+#endif // DEBUG_ENABLEDOS::get_singleton()->_in_editor = editor;if (globals->setup(project_path, main_pack, false, editor) == OK) {@@ -2289,7 +2288,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_phGLOBAL_DEF(PropertyInfo(Variant::INT, "network/limits/debugger/max_errors_per_second", PROPERTY_HINT_RANGE, "1,200,1,or_greater"), 400);GLOBAL_DEF(PropertyInfo(Variant::INT, "network/limits/debugger/max_warnings_per_second", PROPERTY_HINT_RANGE, "1,200,1,or_greater"), 400);-#if defined(DEBUG_ENABLED) || defined(TOOLS_ENABLED)+#ifdef DEBUG_ENABLEDEngineDebugger::initialize(debug_uri, skip_breakpoints, ignore_error_breaks, breakpoints, []() {#ifdef TOOLS_ENABLEDif (editor_pid) {diff --git a/misc/dist/linux/godot.6 b/misc/dist/linux/godot.6index ef3aa548732..29e8c46dc49 100644--- a/misc/dist/linux/godot.6+++ b/misc/dist/linux/godot.6@@ -1,9 +1,9 @@-.TH GODOT "6" "January 2020" "godot 4.0" "Games"+.TH GODOT "6" "November 2026" "godot 4.8" "Games".SH NAMEgodot \- multi\-platform 2D and 3D game engine with a feature\-rich editor.SH SYNOPSIS.B godot-[\fI\,options\/\fR] [path to scene or 'project.godot' file]+[\fI\,options\/\fR] [path to "project.godot" file].SH DESCRIPTIONGodot Engine is an advanced, feature\-packed, multi\-platform 2D and 3D gameengine.@@ -21,30 +21,54 @@ Display the version string.\fB\-v\fR, \fB\-\-verbose\fRUse verbose stdout mode..TP-\fB\-\-quiet\fR+\fB\-q\fR, \fB\-\-quiet\fRQuiet mode, silences stdout messages. Errors are still displayed.+.TP+\fB\-\-no\-header\fR+Do not print engine version and rendering driver/method header on startup..SS "Run options:".TP+\fB\-\-\fR, \fB++\fR+Separator for user\-provided arguments. Following arguments are not used by the engine, but can be read from \fIOS.get_cmdline_user_args()\fR.+.TP\fB\-e\fR, \fB\-\-editor\fRStart the editor instead of running the scene..TP\fB\-p\fR, \fB\-\-project\-manager\fRStart the project manager, even if a project is auto\-detected..TP-\fB\-q\fR, \fB\-\-quit\fR+\fB\-\-recovery\-mode\fR+Start the editor in recovery mode, which disables features that can typically cause startup crashes, such as tool scripts, editor plugins, GDExtension addons, and others.+.TP+\fB\-\-debug\-server\fR <uri>+Start the editor debug server (<protocol>://<host/IP>[:port], e.g. tcp://127.0.0.1:6007)+.TP+\fB\-\-dap\-port\fR <port>+Use the specified port for the GDScript Debug Adapter Protocol. Recommended port range [1024, 49151].+.TP+\fB\-\-lsp\-port\fR <port>+Use the specified port for the GDScript Language Server Protocol. Recommended port range [1024, 49151].+.TP+\fB\-\-quit\fRQuit after the first iteration..TP+\fB\-\-quit\-after\fR <int>+Quit after the given number of iterations. Set to 0 to disable.+.TP\fB\-l\fR, \fB\-\-language\fR <locale>Use a specific locale (<locale> being a two\-letter code)..TP\fB\-\-path\fR <directory>-Path to a project (<directory> must contain a 'project.godot' file).+Path to a project (<directory> must contain a "project.godot" file).+.TP+\fB\-\-scene\fR <path>+Path or UID of a scene in the project that should be started..TP\fB\-\-main\-pack\fR <file>Path to a pack (.pck) file to load..TP\fB\-\-render\-thread\fR <mode>-Render thread mode ('unsafe', 'safe', 'separate').+Render thread mode ("unsafe" [deprecated], "safe", "separate")..TP\fB\-\-remote\-fs\fR <address>Remote filesystem (<host/IP>[:<port>] address).@@ -53,13 +77,47 @@ Remote filesystem (<host/IP>[:<port>] address).Password for remote filesystem..TP\fB\-\-audio\-driver\fR <driver>-Audio driver ('PulseAudio', 'ALSA', 'Dummy').+Audio driver ["PulseAudio", "ALSA", "Dummy"].+.TP+\fB\-\-display\-driver\fR <driver>+Display driver (and rendering driver) ["x11" ("vulkan", "opengl3", "opengl3_es", "dummy"), "wayland" ("vulkan", "opengl3", "opengl3_es", "dummy"), "headless" ("dummy")]..TP\fB\-\-audio\-output\-latency\fR <ms>-Override audio output latency in milliseconds (default is 15 ms). Lower values make sound playback more reactive but increase CPU usage, and may result in audio cracking if the CPU can't keep up.+Override audio output latency in milliseconds (default is 15 ms).+.br+Lower values make sound playback more reactive but increase CPU usage, and may result in audio cracking if the CPU can't keep up.+.TP+\fB\-\-rendering\-method\fR <renderer>+Renderer name. Requires driver support.+.TP+\fB\-\-rendering\-driver\fR <driver>+Rendering driver (depends on display driver).+.TP+\fB\-\-gpu\-index\fR <device_index>+Use a specific GPU (only available on the Forward+/Mobile renderers; run with \fB\-\-verbose\fR to get a list of available devices).+.TP+\fB\-\-text\-driver\fR <driver>+Text driver (used for font rendering, bidirectional support and shaping).+.TP+\fB\-\-tablet\-driver\fR <driver>+Pen tablet input driver.+.TP+\fB\-\-headless\fR+Enable headless mode (\fB\-\-display\-driver\fR headless \fB\-\-audio\-driver\fR Dummy). Useful for servers and with \fB\-\-script\fR..TP-\fB\-\-video\-driver\fR <driver>-Video driver ('Vulkan', 'GLES2').+\fB\-\-log\-file\fR <file>+Write output/error log to the specified path instead of the default location defined by the project.+.br+<file> path should be absolute or relative to the project directory.+.TP+\fB\-\-write\-movie\fR <file>+Write a video to the specified path (usually with .avi or .png extension).+.br+\fB\-\-fixed\-fps\fR is forced when enabled, but it can be used to change movie FPS.+.br+\fB\-\-disable\-vsync\fR can speed up movie writing but makes interaction more difficult.+.br+\fB\-\-quit\-after\fR can be used to specify the number of frames to write..SS "Display options:".TP\fB\-f\fR, \fB\-\-fullscreen\fR@@ -80,40 +138,97 @@ Request window resolution.\fB\-\-position\fR <X>,<Y>Request window position..TP-\fB\-\-low\-dpi\fR-Force low\-DPI mode (macOS and Windows only).+\fB\-\-screen\fR <N>+Request window screen.+.TP+\fB\-\-single\-window\fR+Use a single window (no separate subwindows).+.TP+\fB\-\-xr\-mode\fR <mode>+Select XR (Extended Reality) mode ["default", "off", "on"].+.TP+\fB\-\-wid\fR <window_id>+Request parented to window..TP-\fB\-\-no\-window\fR-Disable window creation (Windows only). Useful together with \fB\-\-script\fR.+\fB\-\-accessibility\fR <mode>+Select accessibility mode ['auto' (when screen reader is running, default), 'always', 'disabled'].+.TP+\fB\-\-accessibility\-driver\fR <driver>+Select accessibility driver ['accesskit', 'dummy']..SS "Debug options:".TP\fB\-d\fR, \fB\-\-debug\fRDebug (local stdout debugger)..TP-\fB\-b\fR, \fB\-\-breakpoints\fR-Breakpoint list as source::line comma\-separated pairs, no spaces (use %20 instead).+\fB\-b\fR, \fB\-\-breakpoints\fR <list>+Breakpoint list as source:line comma\-separated pairs, no spaces (use %20 instead).+.TP+\fB\-\-skip\-breakpoints\fR+If debugger is connected, skips all breakpoints.+.TP+\fB\-\-ignore\-error\-breaks\fR+If debugger is connected, prevents sending error breakpoints..TP\fB\-\-profiling\fREnable profiling in the script debugger..TP-\fB\-\-remote\-debug\fR <address>-Remote debug (<host/IP>:<port> address).+\fB\-\-gpu\-profile\fR+Show a GPU profile of the tasks that took the most time during frame rendering.+.TP+\fB\-\-gpu\-validation\fR+Enable graphics API validation layers for debugging.+.TP+\fB\-\-gpu\-abort\fR+Abort on graphics API usage errors (usually validation layer errors). May help see the problem if your system freezes.+.TP+\fB\-\-generate\-spirv\-debug\-info\fR+Generate SPIR\-V debug information (Vulkan only). This allows source\-level shader debugging with RenderDoc.+.TP+\fB\-\-clear\-shader\-cache\fR+Clear the shader_cache directory at launch, so it's re\-generated.+.TP+\fB\-\-extra\-gpu\-memory\-tracking\fR+Enables additional memory tracking (see class reference for \fIRenderingDevice.get_driver_and_device_memory_report()\fR and linked methods). Currently only implemented for Vulkan. Enabling this feature may cause crashes on some systems due to buggy drivers or bugs in the Vulkan Loader. See https://github.com/godotengine/godot/issues/95967+.TP+\fB\-\-accurate\-breadcrumbs\fR+Force barriers between breadcrumbs. Useful for narrowing down a command causing GPU resets. Currently only implemented for Vulkan.+.TP+\fB\-\-remote\-debug\fR <uri>+Remote debug (<protocol>://<host/IP>[:<port>], e.g. tcp://127.0.0.1:6007)..TP\fB\-\-debug\-collisions\fR-Show collisions shapes when running the scene.+Show collision shapes when running the scene.+.TP+\fB\-\-debug\-paths\fR+Show path lines when running the scene..TP\fB\-\-debug\-navigation\fRShow navigation polygons when running the scene..TP+\fB\-\-debug\-avoidance\fR+Show navigation avoidance debug visuals when running the scene.+.TP+\fB\-\-debug\-stringnames\fR+Print all StringName allocations to stdout when the engine quits.+.TP+\fB\-\-debug\-canvas\-item\-redraw\fR+Display a rectangle each time a canvas item requests a redraw (useful to troubleshoot low processor mode).+.TP+\fB\-\-debug\-mute\-audio\fR+Mute all audio output when running the scene.+.TP\fB\-\-max\-fps\fR <fps>Set a maximum number of frames per second rendered (can be used to limit power usage). A value of 0 results in unlimited framerate..TP\fB\-\-frame\-delay\fR <ms>-Simulate high CPU load (delay each frame by <ms> milliseconds). Do not use as a FPS limiter; use --max-fps instead.+Simulate high CPU load (delay each frame by <ms> milliseconds). Do not use as a FPS limiter; use \fB\-\-max\-fps\fR instead..TP\fB\-\-time\-scale\fR <scale>Force time scale (higher values are faster, 1.0 is normal speed)..TP+\fB\-\-disable\-vsync\fR+Forces disabling of vertical synchronization, even if enabled in the project settings. Does not override driver\-level V\-Sync enforcement.+.TP\fB\-\-disable\-render\-loop\fRDisable render loop so rendering only occurs when called explicitly from script..TP@@ -123,50 +238,99 @@ Disable crash handler when supported by the platform code.\fB\-\-fixed\-fps\fR <fps>Force a fixed number of frames per second. This setting disables real\-time synchronization..TP+\fB\-\-delta\-smoothing\fR <enable>+Enable or disable frame delta smoothing ["enable", "disable"].+.TP\fB\-\-print\-fps\fRPrint the frames per second to the stdout.+.TP+\fB\-\-single\-threaded\-scene\fR+Force scene tree to run in single\-threaded mode. Sub\-thread groups are disabled and run on the main thread.+.TP+\fB\-\-editor\-pseudolocalization\fR+Enable pseudolocalization for the editor and the project manager..SS "Standalone tools:".TP\fB\-s\fR, \fB\-\-script\fR <script>Run a script..TP+\fB\-\-main\-loop\fR <main_loop_name>+Run a MainLoop specified by its global class name.+.TP\fB\-\-check\-only\fR-Only parse for errors and quit (use with --script).+Only parse for errors and quit (use with \fB\-\-script\fR).+.TP+\fB\-\-import\fR+Starts the editor, waits for any resources to be imported, and then quits..TP\fB\-\-export\-release\fR <preset> <path>-Export the project in release mode using the given preset and output path. The preset name should match one defined in export_presets.cfg.+Export the project in release mode using the given preset and output path. The preset name should match one defined in "export_presets.cfg"..br-<path> should be absolute or relative to the project directory, and include the filename for the binary (e.g. 'builds/game.exe').+<path> should be absolute or relative to the project directory, and include the filename for the binary (e.g. "builds/game.exe")..brThe target directory must exist..TP\fB\-\-export\-debug\fR <preset> <path>-Export the project in debug mode using the given preset and output path. The preset name should match one defined in export_presets.cfg.-.br-<path> should be absolute or relative to the project directory, and include the filename for the binary (e.g. 'builds/game.exe').-.br-The target directory must exist.+Export the project in debug mode using the given preset and output path. See \fB\-\-export\-release\fR description for other considerations..TP\fB\-\-export\-pack\fR <preset> <path>Export the project data only using the given preset and output path. The <path> extension determines whether it will be in PCK or ZIP format..TP-\fB\-\-doctool\fR <path>-Dump the engine API reference to the given <path> in XML format, merging if existing files are found.+\fB\-\-export\-patch\fR <preset> <path>+Export pack with changed files only. See \fB\-\-export\-pack\fR description for other considerations.+.TP+\fB\-\-patches\fR <paths>+List of patches to use with \fB\-\-export\-patch\fR. The list is comma\-separated.+.TP+\fB\-\-install\-android\-build\-template\fR+Install the Android build template. Used in conjunction with \fB\-\-export\-release\fR or \fB\-\-export\-debug\fR.+.TP+\fB\-\-convert\-3to4\fR [max_file_kb] [max_line_size]+Converts project from Godot 3.x to Godot 4.x.+.TP+\fB\-\-validate\-conversion\-3to4\fR [max_file_kb] [max_line_size]+Shows what elements will be renamed when converting project from Godot 3.x to Godot 4.x.+.TP+\fB\-\-doctool\fR [path]+Dump the engine API reference to the given <path> (defaults to current directory) in XML format, merging if existing files are found..TP\fB\-\-no\-docbase\fRDisallow dumping the base types (used with \fB\-\-doctool\fR)..TP+\fB\-\-gdextension\-docs\fR+Rather than dumping the engine API, generate API reference from all the GDExtensions loaded in the current project (used with \fB\-\-doctool\fR).+.TP+\fB\-\-gdscript\-docs\fR <path>+Rather than dumping the engine API, generate API reference from the inline documentation in the GDScript files found in <path> (used with \fB\-\-doctool\fR).+.TP\fB\-\-build\-solutions\fR-Build the scripting solutions (e.g. for C# projects). Implies \-\-editor and requires a valid project to edit.+Build the scripting solutions (e.g. for C# projects). Implies \fB\-\-editor\fR and requires a valid project to edit..TP\fB\-\-dump\-gdextension\-interface\fR-Generate GDExtension header file 'gdextension_interface.h' in the current folder. This file is the base file required to implement a GDExtension.+Generate a GDExtension header file "gdextension_interface.h" in the current folder. This file is the base file required to implement a GDExtension.+.TP+\fB\-\-dump\-gdextension\-interface\-json\fR+Generate a JSON dump of the GDExtension interface named "gdextension_interface.json" in the current folder..TP\fB\-\-dump\-extension\-api\fR-Generate JSON dump of the Godot API for GDExtension bindings named 'extension_api.json' in the current folder.+Generate a JSON dump of the Godot API for GDExtension bindings named "extension_api.json" in the current folder.+.TP+\fB\-\-dump\-extension\-api\-with\-docs\fR+Generate JSON dump of the Godot API like the previous option, but including documentation.+.TP+\fB\-\-validate\-extension\-api\fR <path>+Validate an extension API file dumped (with one of the two previous options) from a previous version of the engine to ensure API compatibility.+.br+If incompatibilities or errors are detected, the exit code will be non\-zero.+.TP+\fB\-\-benchmark\fR+Benchmark the run time and print it to console.+.TP+\fB\-\-benchmark\-file\fR <path>+Benchmark the run time and save it to a given file in JSON format. The path should be absolute..TP-\fB\-\-test\fR <test>-Run a unit test ('string', 'math', 'physics', 'physics_2d', 'render', 'oa_hash_map', 'gui', 'shaderlang', 'gd_tokenizer', 'gd_parser', 'gd_compiler', 'gd_bytecode', 'ordered_hash_map', 'astar').+\fB\-\-test\fR [\fB\-\-help\fR]+Run unit tests. Use --test --help for more information. Only available in builds compiled with the \fBtests=yes\fR SCons option..SH FILESXDG_DATA_CONFIG/godot/ or ~/.config/godot/.RSdiff --git a/misc/dist/shell/_godot.zsh-completion b/misc/dist/shell/_godot.zsh-completionindex 08f413987ff..2f7a300d695 100644--- a/misc/dist/shell/_godot.zsh-completion+++ b/misc/dist/shell/_godot.zsh-completion@@ -31,65 +31,98 @@ _arguments \'--version[display the version string]' \'(-v --verbose)'{-v,--verbose}'[use verbose stdout mode]' \'(-q --quiet)'{-q,--quiet}'[quiet mode, silences stdout messages (errors are still displayed)]' \+ '--no-header[do not print engine version and rendering driver/method header on startup]' \'(-e --editor)'{-e,--editor}'[start the editor instead of running the scene]' \'(-p --project-manager)'{-p,--project-manager}'[start the project manager, even if a project is auto-detected]' \+ '--recovery-mode[start the editor in recovery mode, which disables features that can typically cause startup crashes]' \'--debug-server[start the editor debug server]:editor debugger listen address' \+ '--dap-port[use the specified port for the GDScript Debug Adapter Protocol]:port number' \+ '--lsp-port[use the specified port for the GDScript Language Server Protocol]:port number' \'--quit[quit after the first iteration]' \+ '--quit-after[quit after the given number of iterations (0 to disable)]:number of iterations' \'(-l --language)'{-l,--language}'[use a specific locale (<locale> being a two-letter code)]:two-letter locale code' \"--path[path to a project (<directory> must contain a 'project.godot' file)]:path to directory with 'project.godot' file:_dirs" \+ '--scene[path or UID of a scene in the project that should be started]:path or UID of a scene:_files' \'--main-pack[path to a pack (.pck) file to load]:path to .pck file:_files' \- '--render-thread[set the render thread mode]:render thread mode:(unsafe safe separate)' \+ '--render-thread[set the render thread mode]:render thread mode:(safe separate)' \'--remote-fs[use a remote filesystem]:remote filesystem address' \'--remote-fs-password[password for remote filesystem]:remote filesystem password' \- '--audio-driver[set the audio driver]:audio driver name' \+ '--audio-driver[set the audio driver]:audio driver name:(PulseAudio ALSA CoreAudio WASAPI XAudio2 Dummy)' \+ '--display-driver[set the display driver]:display driver name:(x11 wayland macos windows headless)' \'--audio-output-latency[override audio output latency in milliseconds (default is 15 ms)]:number of milliseconds' \- '--display-driver[set the display driver]:display driver name' \- "--rendering-method[set the renderer]:renderer name:((forward_plus\:'Desktop renderer' mobile\:'Desktop and mobile renderer' gl_compatibility\:'Desktop, mobile and web renderer'))" \- "--rendering-driver[set the rendering driver]:rendering driver name:((vulkan\:'Vulkan renderer' opengl3\:'OpenGL ES 3.0 renderer' dummy\:'Dummy renderer'))" \+ "--rendering-method[set the renderer]:renderer name:((forward_plus\:'Desktop renderer' mobile\:'Desktop and mobile renderer' gl_compatibility\:'Desktop, mobile and web renderer' dummy\:'Dummy renderer'))" \+ "--rendering-driver[set the rendering driver]:rendering driver name:((vulkan\:'Vulkan renderer' d3d12\:'Direct3D 12 renderer' metal\:'Metal renderer' opengl3\:'OpenGL 3.3 renderer' opengl3_es\:'OpenGL ES 3.0 renderer' opengl3_angle\:'OpenGL ES 3.0 renderer using ANGLE' dummy\:'Dummy renderer'))" \"--gpu-index[use a specific GPU (run with --verbose to get available device list)]:device index" \'--text-driver[set the text driver]:text driver name' \'--tablet-driver[set the pen tablet input driver]:tablet driver name' \'--headless[enable headless mode (--display-driver headless --audio-driver Dummy), useful for servers and with --script]' \- '--log-file[write output/error log to the specified path instead of the default location defined by the project]:path to output log file' \- '--write-movie[write a video to the specified path (usually with .avi or .png extension)]:path to output video file' \+ '--log-file[write output/error log to the specified path instead of the default location defined by the project]:path to output log file:_files' \+ '--write-movie[write a video to the specified path (usually with .avi or .png extension)]:path to output video file:_files' \'(-f --fullscreen)'{-f,--fullscreen}'[request fullscreen mode]' \'(-m --maximized)'{-m,--maximized}'[request a maximized window]' \'(-w --windowed)'{-w,--windowed}'[request windowed mode]' \'(-t --always-on-top)'{-t,--always-on-top}'[request an always-on-top window]' \'--resolution[request window resolution]:resolution in WxH format' \'--position[request window position]:position in X,Y format' \+ '--screen[request window screen]:screen number' \'--single-window[use a single window (no separate subwindows)]' \'--xr-mode[select Extended Reality (XR) mode]:Extended Reality (XR) mode:(default off on)' \+ '--wid[request parented to window]:window ID' \+ '--accessibility[select accessibility mode]:accessibility mode:(auto always disabled)' \+ '--accessibility-driver[select accessibility driver]:accessibility driver name:(accesskit dummy)' \'(-d --debug)'{-d,--debug}'[debug (local stdout debugger)]' \- '(-b --breakpoints)'{-b,--breakpoints}'[specify the breakpoint list as source::line comma-separated pairs, no spaces (use %20 instead)]:breakpoint list' \+ '(-b --breakpoints)'{-b,--breakpoints}'[specify the breakpoint list as source:line comma-separated pairs, no spaces (use %20 instead)]:breakpoint list' \+ '--skip-breakpoints[if debugger is connected, skips all breakpoints]' \+ '--ignore-error-breaks[if debugger is connected, prevents sending error breakpoints]' \'--profiling[enable profiling in the script debugger]' \'--gpu-profile[show a GPU profile of the tasks that took the most time during frame rendering]' \'--gpu-validation[enable graphics API validation layers for debugging]' \'--gpu-abort[abort on graphics API usage errors (usually validation layer errors)]' \+ '--generate-spirv-debug-info[generate SPIR-V debug information (Vulkan only)]' \+ "--clear-shader-cache[clear the shader_cache directory at launch, so it's re-generated]" \+ '--extra-gpu-memory-tracking[enable additional memory tracking (Vulkan only)]' \+ '--accurate-breadcrumbs[force barriers between breadcrumbs (Vulkan only)]' \'--remote-debug[enable remote debugging]:remote debugger address' \'--debug-collisions[show collision shapes when running the scene]' \+ '--debug-paths[show path lines when running the scene]' \'--debug-navigation[show navigation polygons when running the scene]' \+ '--debug-avoidance[show navigation avoidance debug visuals when running the scene]' \'--debug-stringnames[print all StringName allocations to stdout when the engine quits]' \- '--frame-delay[set a maximum number of frames per second rendered (can be used to limit power usage), a value of 0 results in unlimited framerate]:maximum frames per seocnd' \+ '--debug-canvas-item-redraw[display a rectangle each time a canvas item requests a redraw]' \+ '--debug-mute-audio[mute all audio output when running the scene]' \+ '--max-fps[set a maximum number of frames per second rendered (can be used to limit power usage), a value of 0 results in unlimited framerate]:maximum frames per second' \'--frame-delay[simulate high CPU load (delay each frame by the given number of milliseconds)]:number of milliseconds' \'--time-scale[force time scale (higher values are faster, 1.0 is normal speed)]:time scale' \'--disable-vsync[disable vertical synchronization even if enabled in the project settings]' \'--disable-render-loop[disable render loop so rendering only occurs when called explicitly from script]' \'--disable-crash-handler[disable crash handler when supported by the platform code]' \'--fixed-fps[force a fixed number of frames per second (this setting disables real-time synchronization)]:frames per second' \+ '--delta-smoothing[enable or disable frame delta smoothing]:delta smoothing mode:(enable disable)' \'--print-fps[print the frames per second to the stdout]' \- '(-s, --script)'{-s,--script}'[run a script]:path to script:_files' \+ '--single-threaded-scene[force scene tree to run in single-threaded mode]' \+ '--editor-pseudolocalization[enable pseudolocalization for the editor and the project manager]' \+ '(-s --script)'{-s,--script}'[run a script]:path to script:_files' \+ '--main-loop[run a MainLoop specified by its global class name]:global class name' \'--check-only[only parse for errors and quit (use with --script)]' \- '--export-release[export the project in release mode using the given preset and output path]:export preset name then path' \- '--export-debug[export the project in debug mode using the given preset and output path]:export preset name then path' \- '--export-pack[export the project data only as a PCK or ZIP file using the given preset and output path]:export preset name then path' \- '--convert-3to4[converts project from Godot 3.x to Godot 4.x]' \- '--validate-conversion-3to4[shows what elements will be renamed when converting project from Godot 3.x to Godot 4.x]' \- '--doctool[dump the engine API reference to the given path in XML format, merging if existing files are found]:path to base Godot build directory (optional):_dirs' \+ '--import[start the editor, wait for any resources to be imported, and then quit]' \+ '--export-release[export the project in release mode using the given preset and output path]:export preset name: :path to output file:_files' \+ '--export-debug[export the project in debug mode using the given preset and output path]:export preset name: :path to output file:_files' \+ '--export-pack[export the project data only as a PCK or ZIP file using the given preset and output path]:export preset name: :path to output file:_files' \+ '--export-patch[export pack with changed files only, using the given preset and output path]:export preset name: :path to output file:_files' \+ '--patches[list of patches to use with --export-patch (comma-separated)]:comma-separated list of patches' \+ '--install-android-build-template[install the Android build template (use with --export-release or --export-debug)]' \+ '--convert-3to4[converts project from Godot 3.x to Godot 4.x]::maximum file size in KB: ::maximum line size: ' \+ '--validate-conversion-3to4[shows what elements will be renamed when converting project from Godot 3.x to Godot 4.x]::maximum file size in KB: ::maximum line size: ' \+ '--doctool[dump the engine API reference to the given path (defaults to current directory) in XML format, merging if existing files are found]::path to base Godot build directory:_dirs' \'--no-docbase[disallow dumping the base types (used with --doctool)]' \+ '--gdextension-docs[generate API reference from all the GDExtensions loaded in the current project (used with --doctool)]' \+ '--gdscript-docs[generate API reference from the inline documentation in the GDScript files found in the given path (used with --doctool)]:path to GDScript files:_dirs' \'--build-solutions[build the scripting solutions (e.g. for C# projects)]' \- '--dump-gdextension-interface[generate GDExtension header file 'gdextension_interface.h' in the current folder. This file is the base file required to implement a GDExtension.]' \- '--dump-extension-api[generate JSON dump of the Godot API for GDExtension bindings named "extension_api.json" in the current folder]' \+ "--dump-gdextension-interface[generate GDExtension header file 'gdextension_interface.h' in the current folder. This file is the base file required to implement a GDExtension.]" \+ "--dump-gdextension-interface-json[generate JSON dump of the GDExtension interface named 'gdextension_interface.json' in the current folder]" \+ "--dump-extension-api[generate JSON dump of the Godot API for GDExtension bindings named 'extension_api.json' in the current folder]" \+ '--dump-extension-api-with-docs[generate JSON dump of the Godot API for GDExtension bindings, including documentation]' \+ '--validate-extension-api[validate an extension API file dumped from a previous version of the engine to ensure API compatibility]:path to extension API file:_files' \'--benchmark[benchmark the run time and print it to console]' \- '--benchmark-file[benchmark the run time and save it to a given file in JSON format]:path to output JSON file' \+ '--benchmark-file[benchmark the run time and save it to a given file in JSON format]:path to output JSON file:_files' \'--test[run all unit tests; run with "--test --help" for more information]'diff --git a/misc/dist/shell/godot.bash-completion b/misc/dist/shell/godot.bash-completionindex 3b652c32e0e..d2110d902a8 100644--- a/misc/dist/shell/godot.bash-completion+++ b/misc/dist/shell/godot.bash-completion@@ -32,19 +32,25 @@ _complete_godot_options() {--version--verbose--quiet+--no-header--editor--project-manager+--recovery-mode--debug-server+--dap-port+--lsp-port--quit+--quit-after--language--path+--scene--main-pack--render-thread--remote-fs--remote-fs-password--audio-driver---audio-output-latency--display-driver+--audio-output-latency--rendering-method--rendering-driver--gpu-index@@ -59,18 +65,32 @@ _complete_godot_options() {--always-on-top--resolution--position+--screen--single-window--xr-mode+--wid+--accessibility+--accessibility-driver--debug--breakpoints+--skip-breakpoints+--ignore-error-breaks--profiling--gpu-profile--gpu-validation--gpu-abort+--generate-spirv-debug-info+--clear-shader-cache+--extra-gpu-memory-tracking+--accurate-breadcrumbs--remote-debug--debug-collisions+--debug-paths--debug-navigation+--debug-avoidance--debug-stringnames+--debug-canvas-item-redraw+--debug-mute-audio--max-fps--frame-delay--time-scale@@ -78,19 +98,32 @@ _complete_godot_options() {--disable-render-loop--disable-crash-handler--fixed-fps+--delta-smoothing--print-fps+--single-threaded-scene+--editor-pseudolocalization--script+--main-loop--check-only+--import--export-release--export-debug--export-pack+--export-patch+--patches+--install-android-build-template--convert-3to4--validate-conversion-3to4--doctool--no-docbase+--gdextension-docs+--gdscript-docs--build-solutions--dump-gdextension-interface+--dump-gdextension-interface-json--dump-extension-api+--dump-extension-api-with-docs+--validate-extension-api--benchmark--benchmark-file--test@@ -117,23 +150,47 @@ _complete_godot_bash() {if [[ $prev == "--render-thread" ]]; thenlocal IFS=$' \n\t'# shellcheck disable=SC2207- COMPREPLY=($(compgen -W "unsafe safe separate" -- "$cur"))+ COMPREPLY=($(compgen -W "safe separate" -- "$cur"))+ elif [[ $prev == "--audio-driver" ]]; then+ local IFS=$' \n\t'+ # shellcheck disable=SC2207+ COMPREPLY=($(compgen -W "PulseAudio ALSA CoreAudio WASAPI XAudio2 Dummy" -- "$cur"))+ elif [[ $prev == "--display-driver" ]]; then+ local IFS=$' \n\t'+ # shellcheck disable=SC2207+ COMPREPLY=($(compgen -W "x11 wayland macos windows headless" -- "$cur"))elif [[ $prev == "--rendering-method" ]]; thenlocal IFS=$' \n\t'# shellcheck disable=SC2207- COMPREPLY=($(compgen -W "forward_plus mobile gl_compatibility" -- "$cur"))+ COMPREPLY=($(compgen -W "forward_plus mobile gl_compatibility dummy" -- "$cur"))elif [[ $prev == "--rendering-driver" ]]; thenlocal IFS=$' \n\t'# shellcheck disable=SC2207- COMPREPLY=($(compgen -W "vulkan opengl3 dummy" -- "$cur"))- elif [[ $prev == "--xr-mode" ]]; then+ COMPREPLY=($(compgen -W "vulkan d3d12 metal opengl3 opengl3_es opengl3_angle dummy" -- "$cur"))+ elif [[ $prev == "--xr-mode" ]]; thenlocal IFS=$' \n\t'# shellcheck disable=SC2207COMPREPLY=($(compgen -W "default off on" -- "$cur"))- elif [[ $prev == "--path" || $prev == "--doctool" ]]; then+ elif [[ $prev == "--accessibility" ]]; then+ local IFS=$' \n\t'+ # shellcheck disable=SC2207+ COMPREPLY=($(compgen -W "auto always disabled" -- "$cur"))+ elif [[ $prev == "--accessibility-driver" ]]; then+ local IFS=$' \n\t'+ # shellcheck disable=SC2207+ COMPREPLY=($(compgen -W "accesskit dummy" -- "$cur"))+ elif [[ $prev == "--delta-smoothing" ]]; then+ local IFS=$' \n\t'+ # shellcheck disable=SC2207+ COMPREPLY=($(compgen -W "enable disable" -- "$cur"))+ elif [[ $prev == "--path" || $prev == "--doctool" || $prev == "--gdscript-docs" ]]; thenlocal IFS=$'\n\t'# shellcheck disable=SC2207COMPREPLY=($(compgen -d -- "$cur"))+ elif [[ $prev == "--scene" ]]; then+ local IFS=$'\n\t'+ # shellcheck disable=SC2207+ COMPREPLY=($(compgen -f -X "!*.@(scn|tscn|escn)" -- "$cur"))elif [[ $prev == "--main-pack" ]]; thenlocal IFS=$'\n\t'# shellcheck disable=SC2207@@ -142,6 +199,10 @@ _complete_godot_bash() {local IFS=$'\n\t'# shellcheck disable=SC2207COMPREPLY=($(compgen -f -X "!*.gd" -- "$cur"))+ elif [[ $prev == "--log-file" || $prev == "--write-movie" || $prev == "--validate-extension-api" || $prev == "--benchmark-file" ]]; then+ local IFS=$'\n\t'+ # shellcheck disable=SC2207+ COMPREPLY=($(compgen -f -- "$cur"))fi}diff --git a/misc/dist/shell/godot.fish b/misc/dist/shell/godot.fishindex 98c6c40af5c..4c677729790 100644--- a/misc/dist/shell/godot.fish+++ b/misc/dist/shell/godot.fish@@ -28,12 +28,17 @@ function godot_rendering_method_argsecho -e "forward_plus\tHigh-end desktop renderer"echo -e "mobile\tHigh-end mobile/desktop renderer"echo -e "gl_compatibility\tLow-end desktop, mobile and web renderer"+ echo -e "dummy\tDummy renderer"endfunction godot_rendering_driver_args# Use a function instead of a fixed string to customize the argument descriptions.echo -e "vulkan\tVulkan renderer"- echo -e "opengl3\tOpenGL ES 3.0 renderer"+ echo -e "d3d12\tDirect3D 12 renderer"+ echo -e "metal\tMetal renderer"+ echo -e "opengl3\tOpenGL 3.3 renderer"+ echo -e "opengl3_es\tOpenGL ES 3.0 renderer"+ echo -e "opengl3_angle\tOpenGL ES 3.0 renderer using ANGLE"echo -e "dummy\tDummy renderer"end@@ -45,29 +50,35 @@ complete -c godot -s h -l help -d "Display the full help message"complete -c godot -l version -d "Display the version string"complete -c godot -s v -l verbose -d "Use verbose stdout mode"complete -c godot -s q -l quiet -d "Quiet mode, silences stdout messages (errors are still displayed)"+complete -c godot -l no-header -d "Do not print engine version and rendering driver/method header on startup"# Run options:complete -c godot -s e -l editor -d "Start the editor instead of running the scene"complete -c godot -s p -l project-manager -d "Start the project manager, even if a project is auto-detected"+complete -c godot -l recovery-mode -d "Start the editor in recovery mode, which disables features that can typically cause startup crashes"complete -c godot -l debug-server -d "Start the editor debug server (<protocol>://<host/IP>[:<port>] address)" -x+complete -c godot -l dap-port -d "Use the specified port for the GDScript Debug Adapter Protocol" -x+complete -c godot -l lsp-port -d "Use the specified port for the GDScript Language Server Protocol" -xcomplete -c godot -l quit -d "Quit after the first iteration"+complete -c godot -l quit-after -d "Quit after the given number of iterations (0 to disable)" -xcomplete -c godot -s l -l language -d "Use a specific locale (<locale> being a two-letter code)" -xcomplete -c godot -l path -d "Path to a project (<directory> must contain a 'project.godot' file)" -r+complete -c godot -l scene -d "Path or UID of a scene in the project that should be started" -rcomplete -c godot -l main-pack -d "Path to a pack (.pck) file to load" -r-complete -c godot -l render-thread -d "Set the render thread mode" -x -a "unsafe safe separate"+complete -c godot -l render-thread -d "Set the render thread mode" -x -a "safe separate"complete -c godot -l remote-fs -d "Use a remote filesystem (<host/IP>[:<port>] address)" -xcomplete -c godot -l remote-fs-password -d "Password for remote filesystem" -x-complete -c godot -l audio-driver -d "Set the audio driver" -x+complete -c godot -l audio-driver -d "Set the audio driver" -x -a "PulseAudio ALSA CoreAudio WASAPI XAudio2 Dummy"+complete -c godot -l display-driver -d "Set the display driver" -x -a "x11 wayland macos windows headless"complete -c godot -l audio-output-latency -d "Override audio output latency in milliseconds (default is 15 ms)" -x-complete -c godot -l display-driver -d "Set the display driver" -xcomplete -c godot -l rendering-method -d "Set the renderer" -x -a "(godot_rendering_method_args)"complete -c godot -l rendering-driver -d "Set the rendering driver" -x -a "(godot_rendering_driver_args)"complete -c godot -l gpu-index -d "Use a specific GPU (run with --verbose to get available device list)" -xcomplete -c godot -l text-driver -d "Set the text driver" -xcomplete -c godot -l tablet-driver -d "Set the pen tablet input driver" -xcomplete -c godot -l headless -d "Enable headless mode (--display-driver headless --audio-driver Dummy). Useful for servers and with --script"-complete -c godot -l log-file -d "Write output/error log to the specified path instead of the default location defined by the project" -x-complete -c godot -l write-movie -d "Write a video to the specified path (usually with .avi or .png extension). --fixed-fps is forced when enabled" -x+complete -c godot -l log-file -d "Write output/error log to the specified path instead of the default location defined by the project" -r+complete -c godot -l write-movie -d "Write a video to the specified path (usually with .avi or .png extension). --fixed-fps is forced when enabled" -r# Display options:complete -c godot -s f -l fullscreen -d "Request fullscreen mode"@@ -76,41 +87,69 @@ complete -c godot -s w -l windowed -d "Request windowed mode"complete -c godot -s t -l always-on-top -d "Request an always-on-top window"complete -c godot -l resolution -d "Request window resolution" -xcomplete -c godot -l position -d "Request window position" -x+complete -c godot -l screen -d "Request window screen" -xcomplete -c godot -l single-window -d "Use a single window (no separate subwindows)"-complete -c godot -l xr-mode -d "Select Extended Reality (XR) mode" -a "default off on"+complete -c godot -l xr-mode -d "Select Extended Reality (XR) mode" -x -a "default off on"+complete -c godot -l wid -d "Request parented to window" -x+complete -c godot -l accessibility -d "Select accessibility mode" -x -a "auto always disabled"+complete -c godot -l accessibility-driver -d "Select accessibility driver" -x -a "accesskit dummy"# Debug options:complete -c godot -s d -l debug -d "Debug (local stdout debugger)"-complete -c godot -s b -l breakpoints -d "Specify the breakpoint list as source::line comma-separated pairs, no spaces (use %20 instead)" -x+complete -c godot -s b -l breakpoints -d "Specify the breakpoint list as source:line comma-separated pairs, no spaces (use %20 instead)" -x+complete -c godot -l skip-breakpoints -d "If debugger is connected, skips all breakpoints"+complete -c godot -l ignore-error-breaks -d "If debugger is connected, prevents sending error breakpoints"complete -c godot -l profiling -d "Enable profiling in the script debugger"complete -c godot -l gpu-profile -d "Show a GPU profile of the tasks that took the most time during frame rendering"complete -c godot -l gpu-validation -d "Enable graphics API validation layers for debugging"complete -c godot -l gpu-abort -d "Abort on graphics API usage errors (usually validation layer errors)"-complete -c godot -l remote-debug -d "Enable remote debugging"+complete -c godot -l generate-spirv-debug-info -d "Generate SPIR-V debug information (Vulkan only)"+complete -c godot -l clear-shader-cache -d "Clear the shader_cache directory at launch, so it's re-generated"+complete -c godot -l extra-gpu-memory-tracking -d "Enable additional memory tracking (Vulkan only)"+complete -c godot -l accurate-breadcrumbs -d "Force barriers between breadcrumbs (Vulkan only)"+complete -c godot -l remote-debug -d "Enable remote debugging (<protocol>://<host/IP>[:<port>] address)" -xcomplete -c godot -l debug-collisions -d "Show collision shapes when running the scene"+complete -c godot -l debug-paths -d "Show path lines when running the scene"complete -c godot -l debug-navigation -d "Show navigation polygons when running the scene"+complete -c godot -l debug-avoidance -d "Show navigation avoidance debug visuals when running the scene"complete -c godot -l debug-stringnames -d "Print all StringName allocations to stdout when the engine quits"+complete -c godot -l debug-canvas-item-redraw -d "Display a rectangle each time a canvas item requests a redraw"+complete -c godot -l debug-mute-audio -d "Mute all audio output when running the scene"complete -c godot -l max-fps -d "Set a maximum number of frames per second rendered (can be used to limit power usage), a value of 0 results in unlimited framerate" -xcomplete -c godot -l frame-delay -d "Simulate high CPU load (delay each frame by the given number of milliseconds)" -xcomplete -c godot -l time-scale -d "Force time scale (higher values are faster, 1.0 is normal speed)" -x+complete -c godot -l disable-vsync -d "Disable vertical synchronization, even if enabled in the project settings"complete -c godot -l disable-render-loop -d "Disable render loop so rendering only occurs when called explicitly from script"complete -c godot -l disable-crash-handler -d "Disable crash handler when supported by the platform code"complete -c godot -l fixed-fps -d "Force a fixed number of frames per second (this setting disables real-time synchronization)" -x+complete -c godot -l delta-smoothing -d "Enable or disable frame delta smoothing" -x -a "enable disable"complete -c godot -l print-fps -d "Print the frames per second to the stdout"+complete -c godot -l single-threaded-scene -d "Force scene tree to run in single-threaded mode"+complete -c godot -l editor-pseudolocalization -d "Enable pseudolocalization for the editor and the project manager"# Standalone tools:complete -c godot -s s -l script -d "Run a script" -r+complete -c godot -l main-loop -d "Run a MainLoop specified by its global class name" -xcomplete -c godot -l check-only -d "Only parse for errors and quit (use with --script)"+complete -c godot -l import -d "Start the editor, wait for any resources to be imported, and then quit"complete -c godot -l export-release -d "Export the project in release mode using the given preset and output path" -xcomplete -c godot -l export-debug -d "Export the project in debug mode using the given preset and output path" -xcomplete -c godot -l export-pack -d "Export the project data only as a PCK or ZIP file using the given preset and output path" -x+complete -c godot -l export-patch -d "Export pack with changed files only, using the given preset and output path" -x+complete -c godot -l patches -d "List of patches to use with --export-patch (comma-separated)" -x+complete -c godot -l install-android-build-template -d "Install the Android build template (use with --export-release or --export-debug)"complete -c godot -l convert-3to4 -d "Converts project from Godot 3.x to Godot 4.x"complete -c godot -l validate-conversion-3to4 -d "Shows what elements will be renamed when converting project from Godot 3.x to Godot 4.x"-complete -c godot -l doctool -d "Dump the engine API reference to the given path in XML format, merging if existing files are found" -r+complete -c godot -l doctool -d "Dump the engine API reference to the given path (defaults to current directory) in XML format, merging if existing files are found" -rcomplete -c godot -l no-docbase -d "Disallow dumping the base types (used with --doctool)"+complete -c godot -l gdextension-docs -d "Generate API reference from all the GDExtensions loaded in the current project (used with --doctool)"+complete -c godot -l gdscript-docs -d "Generate API reference from the inline documentation in the GDScript files found in the given path (used with --doctool)" -rcomplete -c godot -l build-solutions -d "Build the scripting solutions (e.g. for C# projects)"complete -c godot -l dump-gdextension-interface -d "Generate GDExtension header file 'gdextension_interface.h' in the current folder. This file is the base file required to implement a GDExtension"+complete -c godot -l dump-gdextension-interface-json -d "Generate JSON dump of the GDExtension interface named 'gdextension_interface.json' in the current folder"complete -c godot -l dump-extension-api -d "Generate JSON dump of the Godot API for GDExtension bindings named 'extension_api.json' in the current folder"+complete -c godot -l dump-extension-api-with-docs -d "Generate JSON dump of the Godot API for GDExtension bindings, including documentation"+complete -c godot -l validate-extension-api -d "Validate an extension API file dumped from a previous version of the engine to ensure API compatibility" -rcomplete -c godot -l benchmark -d "Benchmark the run time and print it to console"-complete -c godot -l benchmark-file -d "Benchmark the run time and save it to a given file in JSON format" -x-complete -c godot -l test -d "Run all unit tests; run with '--test --help' for more information" -x+complete -c godot -l benchmark-file -d "Benchmark the run time and save it to a given file in JSON format" -r+complete -c godot -l test -d "Run all unit tests; run with '--test --help' for more information"