diff --git a/src/main.cc b/src/main.cc index 080c4765..fa69c707 100644 --- a/src/main.cc +++ b/src/main.cc @@ -64,9 +64,7 @@ int main(int argc, char **argv) { << "\n"; }); - for (auto &I : TopLevelSubCommand->OptionsMap) - if (I.second->Category != &C) - I.second->setHiddenFlag(ReallyHidden); + cl::HideUnrelatedOptions(C); ParseCommandLineOptions(argc, argv, "C/C++/Objective-C language server\n\n"