mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-26 13:47:12 +01:00
Added a new command line option to help with generating version.txt for tpz files.
This commit is contained in:
parent
829aeda5b1
commit
5088db36f4
@ -246,6 +246,9 @@ void Main::print_help(const char *p_binary) {
|
||||
OS::get_singleton()->print("General options:\n");
|
||||
OS::get_singleton()->print(" -h, --help Display this help message.\n");
|
||||
OS::get_singleton()->print(" --version Display the version string.\n");
|
||||
#ifdef TOOLS_ENABLED
|
||||
OS::get_singleton()->print(" --version-full-config Display the full config version string (used by the export templates manager).\n");
|
||||
#endif
|
||||
OS::get_singleton()->print(" -v, --verbose Use verbose stdout mode.\n");
|
||||
OS::get_singleton()->print(" --quiet Quiet mode, silences stdout messages. Errors are still displayed.\n");
|
||||
OS::get_singleton()->print("\n");
|
||||
@ -497,6 +500,13 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||
exit_code = ERR_HELP; // Hack to force an early exit in `main()` with a success code.
|
||||
goto error;
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
} else if (I->get() == "--version-full-config") {
|
||||
print_line(String(VERSION_FULL_CONFIG));
|
||||
exit_code = ERR_HELP; // Hack to force an early exit in `main()` with a success code.
|
||||
goto error;
|
||||
#endif
|
||||
|
||||
} else if (I->get() == "-v" || I->get() == "--verbose") { // verbose output
|
||||
|
||||
OS::get_singleton()->_verbose_stdout = true;
|
||||
|
Loading…
Reference in New Issue
Block a user