mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +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";
|
<< "\n";
|
||||||
});
|
});
|
||||||
|
|
||||||
for (auto &I : TopLevelSubCommand->OptionsMap)
|
cl::HideUnrelatedOptions(C);
|
||||||
if (I.second->Category != &C)
|
|
||||||
I.second->setHiddenFlag(ReallyHidden);
|
|
||||||
|
|
||||||
ParseCommandLineOptions(argc, argv,
|
ParseCommandLineOptions(argc, argv,
|
||||||
"C/C++/Objective-C language server\n\n"
|
"C/C++/Objective-C language server\n\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user