Skip to content

Commit

Permalink
Simplify llvm-cat help
Browse files Browse the repository at this point in the history
Only output options that are directly relevant.

Differential Revision: https://reviews.llvm.org/D61740

llvm-svn: 360575
  • Loading branch information
Serge Guelton authored and MrSidims committed May 17, 2019
1 parent 6129aff commit 1f601bd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions llvm/tools/llvm-cat/llvm-cat.cpp
Expand Up @@ -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: ");
Expand Down

0 comments on commit 1f601bd

Please sign in to comment.