summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/llvm-cat/llvm-cat.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/llvm/tools/llvm-cat/llvm-cat.cpp b/llvm/tools/llvm-cat/llvm-cat.cpp
index 5ae2799b60c..6a0992806d6 100644
--- a/llvm/tools/llvm-cat/llvm-cat.cpp
+++ b/llvm/tools/llvm-cat/llvm-cat.cpp
@@ -32,17 +32,23 @@
using namespace llvm;
+cl::OptionCategory CatCategory("llvm-cat Options");
+
static cl::opt<bool>
- BinaryCat("b", cl::desc("Whether to perform binary concatenation"));
+ BinaryCat("b", cl::desc("Whether to perform binary concatenation"),
+ cl::cat(CatCategory));
static cl::opt<std::string> OutputFilename("o", cl::Required,
cl::desc("Output filename"),
- cl::value_desc("filename"));
+ cl::value_desc("filename"),
+ cl::cat(CatCategory));
static cl::list<std::string> InputFilenames(cl::Positional, cl::ZeroOrMore,
- cl::desc("<input files>"));
+ cl::desc("<input files>"),
+ cl::cat(CatCategory));
int main(int argc, char **argv) {
+ cl::HideUnrelatedOptions(CatCategory);
cl::ParseCommandLineOptions(argc, argv, "Module concatenation");
ExitOnError ExitOnErr("llvm-cat: ");
OpenPOWER on IntegriCloud