mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-19 12:05:50 +00:00
Add --wait-for-input.
Previous on Windows when running index tests cquery would wait for the user to press enter. This breaks AppVeyor CI.
This commit is contained in:
parent
b69e32a749
commit
2bc44d59f2
@ -1036,10 +1036,6 @@ int main(int argc, char** argv) {
|
|||||||
if (HasOption(options, "--test-index")) {
|
if (HasOption(options, "--test-index")) {
|
||||||
print_help = false;
|
print_help = false;
|
||||||
RunIndexTests(options["--test-index"]);
|
RunIndexTests(options["--test-index"]);
|
||||||
#if defined(_WIN32)
|
|
||||||
std::cerr << std::endl << "[Enter] to exit" << std::endl;
|
|
||||||
std::cin.get();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (HasOption(options, "--language-server")) {
|
if (HasOption(options, "--language-server")) {
|
||||||
@ -1050,6 +1046,11 @@ int main(int argc, char** argv) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (HasOption(options, "--wait-for-input")) {
|
||||||
|
std::cerr << std::endl << "[Enter] to exit" << std::endl;
|
||||||
|
std::cin.get();
|
||||||
|
}
|
||||||
|
|
||||||
if (print_help) {
|
if (print_help) {
|
||||||
std::cout
|
std::cout
|
||||||
<< R"help(cquery is a low-latency C/C++/Objective-C language server.
|
<< R"help(cquery is a low-latency C/C++/Objective-C language server.
|
||||||
@ -1075,6 +1076,9 @@ Command line options:
|
|||||||
--clang-sanity-check
|
--clang-sanity-check
|
||||||
Run a simple index test. Verifies basic clang functionality.
|
Run a simple index test. Verifies basic clang functionality.
|
||||||
Needs to be executed from the cquery root checkout directory.
|
Needs to be executed from the cquery root checkout directory.
|
||||||
|
--wait-for-input
|
||||||
|
If true, cquery will wait for an '[Enter]' before exiting.
|
||||||
|
Useful on windows.
|
||||||
--help Print this help information.
|
--help Print this help information.
|
||||||
|
|
||||||
Configuration:
|
Configuration:
|
||||||
|
Loading…
Reference in New Issue
Block a user