ΒΆvoid HideUnrelatedOptions(
    cl::OptionCategory& Category,
    llvm::cl::SubCommand& Sub =
        *TopLevelSubCommand)

Description

Mark all options not part of this category as cl::ReallyHidden. Some tools (like clang-format) like to be able to hide all options that are not specific to the tool. This function allows a tool to specify a single option category to display in the -help output.

Declared at: llvm/include/llvm/Support/CommandLine.h:2097

Parameters

cl::OptionCategory& Category
the category of options to keep displaying
llvm::cl::SubCommand& Sub = * TopLevelSubCommand