Skip to content

Commit edb4912

Browse files
committed
Merge pull request #106130 from kitbdev/fix-test-help
Fix `--test` help option not showing in template builds
2 parents 8302d81 + 3d2ad8c commit edb4912

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,10 @@ void Main::print_help(const char *p_binary) {
695695
print_help_option("", "If incompatibilities or errors are detected, the exit code will be non-zero.\n");
696696
print_help_option("--benchmark", "Benchmark the run time and print it to console.\n", CLI_OPTION_AVAILABILITY_EDITOR);
697697
print_help_option("--benchmark-file <path>", "Benchmark the run time and save it to a given file in JSON format. The path should be absolute.\n", CLI_OPTION_AVAILABILITY_EDITOR);
698+
#endif // TOOLS_ENABLED
698699
#ifdef TESTS_ENABLED
699-
print_help_option("--test [--help]", "Run unit tests. Use --test --help for more information.\n", CLI_OPTION_AVAILABILITY_EDITOR);
700-
#endif
701-
#endif
700+
print_help_option("--test [--help]", "Run unit tests. Use --test --help for more information.\n");
701+
#endif // TESTS_ENABLED
702702
OS::get_singleton()->print("\n");
703703
}
704704

0 commit comments

Comments
 (0)