Selaa lähdekoodia

Update Command line tutorial to match 4.0.alpha11 `--help` output (#5918)

Nabware 3 vuotta sitten
vanhempi
commit
15173a0eec
1 muutettua tiedostoa jossa 47 lisäystä ja 26 poistoa
  1. 47 26
      tutorials/editor/command_line_tutorial.rst

+ 47 - 26
tutorials/editor/command_line_tutorial.rst

@@ -32,13 +32,13 @@ Command line reference
 +----------------------------+----------------------------------------------------------------------+
 | Command                    | Description                                                          |
 +----------------------------+----------------------------------------------------------------------+
-| ``-h``, ``--help``, ``/?`` | Display the list of command line options.                            |
+| ``-h``, ``--help``         | Display the list of command line options.                            |
 +----------------------------+----------------------------------------------------------------------+
 | ``--version``              | Display the version string.                                          |
 +----------------------------+----------------------------------------------------------------------+
 | ``-v``, ``--verbose``      | Use verbose stdout mode.                                             |
 +----------------------------+----------------------------------------------------------------------+
-| ``--quiet``                | Quiet mode, silences stdout messages. Errors are still displayed.    |
+| ``-q, --quiet``            | Quiet mode, silences stdout messages. Errors are still displayed.    |
 +----------------------------+----------------------------------------------------------------------+
 
 **Run options**
@@ -50,17 +50,21 @@ Command line reference
 +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
 | ``-p``, ``--project-manager``            | Start the project manager, even if a project is auto-detected (:ref:`tools <doc_introduction_to_the_buildsystem_tools>` must be enabled).                    |
 +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``-q``, ``--quit``                       | Quit after the first iteration.                                                                                                                              |
+| ``--debug-server <uri>``                 | Start the editor debug server (``<protocol>://<host/IP>[:<port>]``, e.g. ``tcp://127.0.0.1:6007``)                                                           |
 +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``-l <locale>``, ``--language <locale>`` | Use a specific locale (<locale> being a two-letter code). See :ref:`doc_locales` for more details.                                                           |
+| ``--quit``                               | Quit after the first iteration.                                                                                                                              |
 +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``--path <directory>``                   | Path to a project (<directory> must contain a 'project.godot' file).                                                                                         |
+| ``-l``, ``--language <locale>``          | Use a specific locale. ``<locale>`` follows the format ``language_Script_COUNTRY_VARIANT`` where language is a 2 or 3-letter language code in lower case     |
+|                                          | and the rest is optional. See :ref:`doc_locales` for more details.                                                                                           |
++------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
+| ``--path <directory>``                   | Path to a project (``<directory>`` must contain a 'project.godot' file).                                                                                     |
 +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
 | ``-u``, ``--upwards``                    | Scan folders upwards for 'project.godot' file.                                                                                                               |
 +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
 | ``--main-pack <file>``                   | Path to a pack (.pck) file to load.                                                                                                                          |
 +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``--render-thread <mode>``               | Render thread mode ('unsafe', 'safe', 'separate'). See :ref:`Thread Model <class_ProjectSettings_property_rendering/threads/thread_model>` for more details. |
+| ``--render-thread <mode>``               | Render thread mode ('unsafe', 'safe', 'separate'). See :ref:`Thread Model <class_ProjectSettings_property_rendering/driver/threads/thread_model>`            |
+|                                          | for more details.                                                                                                                                            |
 +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
 | ``--remote-fs <address>``                | Remote filesystem (``<host/IP>[:<port>]`` address).                                                                                                          |
 +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
@@ -72,6 +76,20 @@ Command line reference
 +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
 | ``--rendering-driver <driver>``          | Rendering driver (depends on display driver). Use ``--help`` first to display the list of available drivers.                                                 |
 +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
+| ``--gpu-index <device_index>``           | Use a specific GPU (run with ``--verbose`` to get available device list).                                                                                    |
++------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
+| ``--text-driver <driver>``               | Text driver ('Fonts', 'BiDi', 'shaping')                                                                                                                     |
++------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
+| ``--tablet-driver <driver>``             | Pen tablet input driver.                                                                                                                                     |
++------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
+| ``--headless``                           | Enable headless mode (``--display-driver headless --audio-driver Dummy``). Useful for servers and with ``--script``.                                         |
++------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
+| ``--write-movie <file>``                 | Run the engine in a way that a movie is written (by default .avi MJPEG). Fixed FPS is forced when enabled, but can be used to change movie FPS.              |
+|                                          | Disabling vsync can speed up movie writing but makes interaction more difficult.                                                                             |
++------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
+| ``--disable-vsync``                      | Force disabling of vsync. Run the engine in a way that a movie is written (by default .avi MJPEG).                                                           |
+|                                          | Fixed FPS is forced when enabled, but can be used to change movie FPS.                                                                                       |
++------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
 
 **Display options**
 
@@ -90,18 +108,8 @@ Command line reference
 +------------------------------------+----------------------------------------------------------------------------+
 | ``--position <X>,<Y>``             | Request window position.                                                   |
 +------------------------------------+----------------------------------------------------------------------------+
-| ``--low-dpi``                      | Force low-DPI mode (macOS and Windows only).                               |
-+------------------------------------+----------------------------------------------------------------------------+
-| ``--no-window``                    | Run with invisible window. Useful together with ``--script``.              |
-+------------------------------------+----------------------------------------------------------------------------+
-| ``--enable-vsync-via-compositor``  | When vsync is enabled, vsync via the OS' window compositor (Windows only). |
-+------------------------------------+----------------------------------------------------------------------------+
-| ``--disable-vsync-via-compositor`` | Disable vsync via the OS' window compositor (Windows only).                |
-+------------------------------------+----------------------------------------------------------------------------+
 | ``--single-window``                | Use a single window (no separate subwindows).                              |
 +------------------------------------+----------------------------------------------------------------------------+
-| ``--tablet-driver``                | Tablet input driver (Windows only).                                        |
-+------------------------------------+----------------------------------------------------------------------------+
 
 **Debug options**
 
@@ -120,14 +128,22 @@ Command line reference
 +------------------------------+---------------------------------------------------------------------------------------------------------+
 | ``--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 GPU errors (usually validation layer errors), may help see the problem if your system freezes. |
 +------------------------------+---------------------------------------------------------------------------------------------------------+
-| ``--remote-debug <address>`` | Remote debug (<protocol>://<host/IP>[:<port>], e.g. tcp://127.0.0.1:6007).                              |
+| ``--remote-debug <uri>``     | Remote debug (``<protocol>://<host/IP>[:<port>]``, e.g. ``tcp://127.0.0.1:6007``).                      |
 +------------------------------+---------------------------------------------------------------------------------------------------------+
 | ``--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-stringnames``      | Print all StringName allocations to stdout when the engine quits.                                       |
++------------------------------+---------------------------------------------------------------------------------------------------------+
 | ``--frame-delay <ms>``       | Simulate high CPU load (delay each frame by <ms> milliseconds).                                         |
 +------------------------------+---------------------------------------------------------------------------------------------------------+
 | ``--time-scale <scale>``     | Force time scale (higher values are faster, 1.0 is normal speed).                                       |
@@ -146,28 +162,33 @@ Command line reference
 +----------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
 | Command                                | Description                                                                                                                                     |
 +----------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``-s <script>``, ``--script <script>`` | Run a script.                                                                                                                                   |
+| ``-s``, ``--script <script>``          | Run a script.                                                                                                                                   |
 +----------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
 | ``--check-only``                       | Only parse for errors and quit (use with ``--script``).                                                                                         |
 +----------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``--export <preset> <path>``           | Export the project using the given export target. Export only main pack if path ends with .pck or .zip                                          |
-|                                        | (:ref:`tools <doc_introduction_to_the_buildsystem_tools>` must be enabled).                                                                     |
+| ``--export <preset> <path>``           | Export the project using the given preset and matching release template (:ref:`tools <doc_introduction_to_the_buildsystem_tools>` must be       |
+|                                        | enabled). The preset name should match one defined in export_presets.cfg. ``<path>`` should be absolute or relative to the project directory,   |
+|                                        | and include the filename for the binary (e.g. 'builds/game.exe'). The target directory should exist.                                            |
 +----------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
 | ``--export-debug <preset> <path>``     | Like ``--export``, but use debug template (:ref:`tools <doc_introduction_to_the_buildsystem_tools>` must be enabled).                           |
 +----------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``--export-pack <preset> <path>``      | Like ``--export``, but only export the game pack for the given preset. The <path> extension determines whether it will be in PCK or ZIP format. |
-|                                        | (:ref:`tools <doc_introduction_to_the_buildsystem_tools>` must be enabled).                                                                     |
+| ``--export-pack <preset> <path>``      | Like ``--export``, but only export the game pack for the given preset. The ``<path>`` extension determines whether it will be in PCK or ZIP     |
+|                                        | format (:ref:`tools <doc_introduction_to_the_buildsystem_tools>` must be enabled).                                                              |
++----------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
+| ``--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 <path>``                   | Dump the engine API reference to the given <path> in XML format, merging if existing files are found                                            |
+| ``--doctool <path>``                   | Dump the engine API reference to the given ``<path>`` in XML format, merging if existing files are found                                        |
 |                                        | (:ref:`tools <doc_introduction_to_the_buildsystem_tools>` must be enabled).                                                                     |
 +----------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
 | ``--no-docbase``                       | Disallow dumping the base types (used with ``--doctool``, :ref:`tools <doc_introduction_to_the_buildsystem_tools>` must be enabled).            |
 +----------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
 | ``--build-solutions``                  | Build the scripting solutions (e.g. for C# projects, :ref:`tools <doc_introduction_to_the_buildsystem_tools>` must be enabled).                 |
+|                                        | Implies ``--editor`` and requires a valid project to edit.                                                                                      |
 +----------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``--gdnative-generate-json-api``       | Generate JSON dump of the Godot API for GDNative bindings (:ref:`tools <doc_introduction_to_the_buildsystem_tools>` must be enabled).           |
-+----------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``--test <test>``                      | Run a unit test. Use ``--help`` first to display the list of tests. (:ref:`tools <doc_introduction_to_the_buildsystem_tools>` must be enabled). |
+| ``--dump-extension-api``               | Generate JSON dump of the Godot API for GDExtension bindings named 'extension_api.json' in the current folder                                   |
+|                                        | (:ref:`tools <doc_introduction_to_the_buildsystem_tools>` must be enabled).                                                                     |
 +----------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
 
 Path