Add --quit option to help output and update manpage
This commit is contained in:
parent
8cde69f5f2
commit
95b8984d5f
2 changed files with 13 additions and 3 deletions
|
@ -206,6 +206,7 @@ void Main::print_help(const char *p_binary) {
|
||||||
OS::get_singleton()->print(" -e, --editor Start the editor instead of running the scene.\n");
|
OS::get_singleton()->print(" -e, --editor Start the editor instead of running the scene.\n");
|
||||||
OS::get_singleton()->print(" -p, --project-manager Start the project manager, even if a project is auto-detected.\n");
|
OS::get_singleton()->print(" -p, --project-manager Start the project manager, even if a project is auto-detected.\n");
|
||||||
#endif
|
#endif
|
||||||
|
OS::get_singleton()->print(" -q, --quit Quit after the first iteration.\n");
|
||||||
OS::get_singleton()->print(" -l, --language <locale> Use a specific locale (<locale> being a two-letter code).\n");
|
OS::get_singleton()->print(" -l, --language <locale> Use a specific locale (<locale> being a two-letter code).\n");
|
||||||
OS::get_singleton()->print(" --path <directory> Path to a project (<directory> must contain a 'project.godot' file).\n");
|
OS::get_singleton()->print(" --path <directory> Path to a project (<directory> must contain a 'project.godot' file).\n");
|
||||||
OS::get_singleton()->print(" -u, --upwards Scan folders upwards for project.godot file.\n");
|
OS::get_singleton()->print(" -u, --upwards Scan folders upwards for project.godot file.\n");
|
||||||
|
@ -263,7 +264,7 @@ void Main::print_help(const char *p_binary) {
|
||||||
OS::get_singleton()->print(" --export-debug Use together with --export, enables debug mode for the template.\n");
|
OS::get_singleton()->print(" --export-debug Use together with --export, enables debug mode for the template.\n");
|
||||||
OS::get_singleton()->print(" --doctool <path> Dump the engine API reference to the given <path> in XML format, merging if existing files are found.\n");
|
OS::get_singleton()->print(" --doctool <path> Dump the engine API reference to the given <path> in XML format, merging if existing files are found.\n");
|
||||||
OS::get_singleton()->print(" --no-docbase Disallow dumping the base types (used with --doctool).\n");
|
OS::get_singleton()->print(" --no-docbase Disallow dumping the base types (used with --doctool).\n");
|
||||||
OS::get_singleton()->print(" --build-solutions Builds the scripting solutions (IE. C#).\n");
|
OS::get_singleton()->print(" --build-solutions Build the scripting solutions (e.g. for C# projects).\n");
|
||||||
#ifdef DEBUG_METHODS_ENABLED
|
#ifdef DEBUG_METHODS_ENABLED
|
||||||
OS::get_singleton()->print(" --gdnative-generate-json-api Generate JSON dump of the Godot API for GDNative bindings.\n");
|
OS::get_singleton()->print(" --gdnative-generate-json-api Generate JSON dump of the Godot API for GDNative bindings.\n");
|
||||||
#endif
|
#endif
|
||||||
|
@ -558,7 +559,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||||
}
|
}
|
||||||
} else if (I->get() == "-u" || I->get() == "--upwards") { // scan folders upwards
|
} else if (I->get() == "-u" || I->get() == "--upwards") { // scan folders upwards
|
||||||
upwards = true;
|
upwards = true;
|
||||||
} else if (I->get() == "--quit" || I->get() == "-q") { // Auto quit at the end of the first main loop iteration
|
} else if (I->get() == "-q" || I->get() == "--quit") { // Auto quit at the end of the first main loop iteration
|
||||||
auto_quit = true;
|
auto_quit = true;
|
||||||
} else if (I->get().ends_with("project.godot")) {
|
} else if (I->get().ends_with("project.godot")) {
|
||||||
String path;
|
String path;
|
||||||
|
|
11
misc/dist/linux/godot.6
vendored
11
misc/dist/linux/godot.6
vendored
|
@ -1,4 +1,4 @@
|
||||||
.TH GODOT "6" "January 2018" "godot 3.0" "Games"
|
.TH GODOT "6" "February 2018" "godot 3.1" "Games"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
godot \- multi\-platform 2D and 3D game engine with a feature\-rich editor
|
godot \- multi\-platform 2D and 3D game engine with a feature\-rich editor
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -31,6 +31,9 @@ Start the editor instead of running the scene.
|
||||||
\fB\-p\fR, \fB\-\-project\-manager\fR
|
\fB\-p\fR, \fB\-\-project\-manager\fR
|
||||||
Start the project manager, even if a project is auto\-detected.
|
Start the project manager, even if a project is auto\-detected.
|
||||||
.TP
|
.TP
|
||||||
|
\fB\-q\fR, \fB\-\-quit\fR
|
||||||
|
Quit after the first iteration.
|
||||||
|
.TP
|
||||||
\fB\-l\fR, \fB\-\-language\fR <locale>
|
\fB\-l\fR, \fB\-\-language\fR <locale>
|
||||||
Use a specific locale (<locale> being a two\-letter code).
|
Use a specific locale (<locale> being a two\-letter code).
|
||||||
.TP
|
.TP
|
||||||
|
@ -68,6 +71,9 @@ Request a maximized window.
|
||||||
\fB\-w\fR, \fB\-\-windowed\fR
|
\fB\-w\fR, \fB\-\-windowed\fR
|
||||||
Request windowed mode.
|
Request windowed mode.
|
||||||
.TP
|
.TP
|
||||||
|
\fB\-t\fR, \fB\-\-always\-on\-top\fR
|
||||||
|
Request an always\-on\-top window.
|
||||||
|
.TP
|
||||||
\fB\-\-resolution\fR <W>x<H>
|
\fB\-\-resolution\fR <W>x<H>
|
||||||
Request window resolution.
|
Request window resolution.
|
||||||
.TP
|
.TP
|
||||||
|
@ -130,6 +136,9 @@ Dump the engine API reference to the given <path> in XML format, merging if exis
|
||||||
\fB\-\-no\-docbase\fR
|
\fB\-\-no\-docbase\fR
|
||||||
Disallow dumping the base types (used with \fB\-\-doctool\fR).
|
Disallow dumping the base types (used with \fB\-\-doctool\fR).
|
||||||
.TP
|
.TP
|
||||||
|
\fB\-\-build\-solutions\fR
|
||||||
|
Build the scripting solutions (e.g. for C# projects).
|
||||||
|
.TP
|
||||||
\fB\-\-gdnative\-generate\-json\-api\fR
|
\fB\-\-gdnative\-generate\-json\-api\fR
|
||||||
Generate JSON dump of the Godot API for GDNative bindings.
|
Generate JSON dump of the Godot API for GDNative bindings.
|
||||||
.TP
|
.TP
|
||||||
|
|
Loading…
Reference in a new issue