[PATCH] D114538: Have yaml2obj describe all options in --help
Paul Robinson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 24 07:20:38 PST 2021
probinson created this revision.
probinson added a reviewer: jhenderson.
probinson requested review of this revision.
Herald added a project: LLVM.
Looks like a couple of options were missing `cl::cat(Cat)` and so weren't in the help output.
https://reviews.llvm.org/D114538
Files:
llvm/tools/yaml2obj/yaml2obj.cpp
Index: llvm/tools/yaml2obj/yaml2obj.cpp
===================================================================
--- llvm/tools/yaml2obj/yaml2obj.cpp
+++ llvm/tools/yaml2obj/yaml2obj.cpp
@@ -37,7 +37,8 @@
cl::list<std::string>
D("D", cl::Prefix,
cl::desc("Defined the specified macros to their specified "
- "definition. The syntax is <macro>=<definition>"));
+ "definition. The syntax is <macro>=<definition>"),
+ cl::cat(Cat));
cl::opt<unsigned>
DocNum("docnum", cl::init(1),
@@ -47,7 +48,8 @@
static cl::opt<uint64_t> MaxSize(
"max-size", cl::init(10 * 1024 * 1024),
cl::desc(
- "Sets the maximum allowed output size (0 means no limit) [ELF only]"));
+ "Sets the maximum allowed output size (0 means no limit) [ELF only]"),
+ cl::cat(Cat));
cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"),
cl::value_desc("filename"), cl::init("-"),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114538.389492.patch
Type: text/x-patch
Size: 974 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211124/6af9f5d7/attachment.bin>
More information about the llvm-commits
mailing list