[llvm-readobj] NFC. Add -help description of --hex-dump and
authorYuanfang Chen <yuanfang.chen@sony.com>
Sat, 25 Jul 2020 19:24:37 +0000 (12:24 -0700)
committerYuanfang Chen <yuanfang.chen@sony.com>
Thu, 30 Jul 2020 02:18:01 +0000 (19:18 -0700)
--string-dump

llvm/tools/llvm-readobj/llvm-readobj.cpp

index 6b8a883..d6fc610 100644 (file)
@@ -183,14 +183,18 @@ namespace opts {
                           cl::aliasopt(ProgramHeaders));
 
   // --string-dump, -p
-  cl::list<std::string> StringDump("string-dump", cl::desc("<number|name>"),
-                                   cl::ZeroOrMore);
+  cl::list<std::string> StringDump(
+      "string-dump", cl::value_desc("number|name"),
+      cl::desc("Display the specified section(s) as a list of strings"),
+      cl::ZeroOrMore);
   cl::alias StringDumpShort("p", cl::desc("Alias for --string-dump"),
                             cl::aliasopt(StringDump), cl::Prefix);
 
   // --hex-dump, -x
-  cl::list<std::string> HexDump("hex-dump", cl::desc("<number|name>"),
-                                cl::ZeroOrMore);
+  cl::list<std::string>
+      HexDump("hex-dump", cl::value_desc("number|name"),
+              cl::desc("Display the specified section(s) as hexadecimal bytes"),
+              cl::ZeroOrMore);
   cl::alias HexDumpShort("x", cl::desc("Alias for --hex-dump"),
                          cl::aliasopt(HexDump), cl::Prefix);