diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2018-07-27 09:06:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-27 09:06:08 +0200 |
| commit | ea0abedaf76616f9b948d27be0376201c767eb15 (patch) | |
| tree | bacae2787e59c8517239c87ff5e9460bf2ab6c8b /main/main.cpp | |
| parent | 7056dc601130ae0aa97b5399db3f66b138e462c9 (diff) | |
| parent | 2d4a4a245db7847dd1f446814845d48299a42053 (diff) | |
| download | redot-engine-ea0abedaf76616f9b948d27be0376201c767eb15.tar.gz | |
Merge pull request #20506 from akien-mga/check-only-paired
Main: Fix --check-only option implemented as paired
Diffstat (limited to 'main/main.cpp')
| -rw-r--r-- | main/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/main.cpp b/main/main.cpp index 5beeb95a11..2fd9cfa734 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -265,7 +265,7 @@ void Main::print_help(const char *p_binary) { OS::get_singleton()->print(" -s, --script <script> Run a script.\n"); OS::get_singleton()->print(" --check-only Only parse for errors and quit (use with --script).\n"); #ifdef TOOLS_ENABLED - OS::get_singleton()->print(" --export <target> Export the project using the given export target. Export only main pack if path ends with .pck or .zip'.\n"); + OS::get_singleton()->print(" --export <target> Export the project using the given export target. Export only main pack if path ends with .pck or .zip.\n"); OS::get_singleton()->print(" --export-debug <target> Like --export, but use debug 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(" --no-docbase Disallow dumping the base types (used with --doctool).\n"); @@ -1257,14 +1257,14 @@ bool Main::start() { #endif } else if (args[i].length() && args[i][0] != '-' && game_path == "") { game_path = args[i]; + } else if (args[i] == "--check-only") { + check_only = true; } //parameters that have an argument to the right else if (i < (args.size() - 1)) { bool parsed_pair = true; if (args[i] == "-s" || args[i] == "--script") { script = args[i + 1]; - } else if (args[i] == "--check-only") { - check_only = true; } else if (args[i] == "--test") { test = args[i + 1]; #ifdef TOOLS_ENABLED |
