ΒΆvoid HideUnrelatedOptions(
    ArrayRef<const cl::OptionCategory*>
        Categories,
    llvm::cl::SubCommand& Sub =
        *TopLevelSubCommand)

Description

Mark all options not part of the categories 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:2107

Parameters

ArrayRef<const cl::OptionCategory*> Categories
the categories of options to keep displaying.
llvm::cl::SubCommand& Sub = * TopLevelSubCommand