mirror of
https://github.com/MaskRay/ccls.git
synced 2025-04-18 22:53:03 +00:00
Simplify: hide unrelated options
This commit is contained in:
parent
b4af654e77
commit
41e7d6a79c
@ -64,13 +64,7 @@ int main(int argc, char **argv) {
|
|||||||
<< "\n";
|
<< "\n";
|
||||||
});
|
});
|
||||||
|
|
||||||
for (auto &i : TopLevelSubCommand->OptionsMap)
|
cl::HideUnrelatedOptions(C);
|
||||||
#if LLVM_VERSION_MAJOR >= 9 // rL360179
|
|
||||||
if (i.second->Categories[0] != &C)
|
|
||||||
#else
|
|
||||||
if (i.second->Category != &C)
|
|
||||||
#endif
|
|
||||||
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