Simplify: hide unrelated options

This commit is contained in:
Fangrui Song 2019-05-08 07:45:17 -07:00
parent 34c5954420
commit aab9dd6642

View File

@ -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"