mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 09:05:10 +00:00
Simplify: hide unrelated options
This commit is contained in:
parent
34c5954420
commit
aab9dd6642
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user