From 3d2ad8c316eea7cbdf07e3ace2670983d6338c6f Mon Sep 17 00:00:00 2001 From: kit Date: Tue, 6 May 2025 14:31:41 -0400 Subject: [PATCH] Fix `--test` help option not in template builds --- main/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/main.cpp b/main/main.cpp index e27979dd1a2..7a894388eb6 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -694,10 +694,10 @@ void Main::print_help(const char *p_binary) { print_help_option("", "If incompatibilities or errors are detected, the exit code will be non-zero.\n"); print_help_option("--benchmark", "Benchmark the run time and print it to console.\n", CLI_OPTION_AVAILABILITY_EDITOR); print_help_option("--benchmark-file ", "Benchmark the run time and save it to a given file in JSON format. The path should be absolute.\n", CLI_OPTION_AVAILABILITY_EDITOR); +#endif // TOOLS_ENABLED #ifdef TESTS_ENABLED - print_help_option("--test [--help]", "Run unit tests. Use --test --help for more information.\n", CLI_OPTION_AVAILABILITY_EDITOR); -#endif -#endif + print_help_option("--test [--help]", "Run unit tests. Use --test --help for more information.\n"); +#endif // TESTS_ENABLED OS::get_singleton()->print("\n"); }