[PATCH] D39978: [llvm-objcopy] Improve command line option help messages

Jake Ehrlich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 12:36:52 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL318190: [llvm-objcopy] Improve command line option help messages (authored by jakehehrlich).

Changed prior to commit:
  https://reviews.llvm.org/D39978?vs=122720&id=122899#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D39978

Files:
  llvm/trunk/tools/llvm-objcopy/llvm-objcopy.cpp


Index: llvm/trunk/tools/llvm-objcopy/llvm-objcopy.cpp
===================================================================
--- llvm/trunk/tools/llvm-objcopy/llvm-objcopy.cpp
+++ llvm/trunk/tools/llvm-objcopy/llvm-objcopy.cpp
@@ -75,10 +75,11 @@
 static cl::opt<std::string> OutputFilename(cl::Positional, cl::desc("<output>"),
                                     cl::init("-"));
 static cl::opt<std::string>
-    OutputFormat("O", cl::desc("set output format to one of the following:"
+    OutputFormat("O", cl::desc("Set output format to one of the following:"
                                "\n\tbinary"));
 static cl::list<std::string> ToRemove("remove-section",
-                                      cl::desc("Remove a specific section"));
+                                      cl::desc("Remove <section>"),
+                                      cl::value_desc("section"));
 static cl::alias ToRemoveA("R", cl::desc("Alias for remove-section"),
                            cl::aliasopt(ToRemove));
 static cl::opt<bool> StripAll("strip-all",
@@ -90,13 +91,13 @@
 static cl::opt<bool> StripNonAlloc("strip-non-alloc",
                                    cl::desc("Remove all non-allocated sections"));
 static cl::opt<bool>
-    StripDWO("strip-dwo", cl::desc("remove all DWARF .dwo sections from file"));
+    StripDWO("strip-dwo", cl::desc("Remove all DWARF .dwo sections from file"));
 static cl::opt<bool> ExtractDWO(
     "extract-dwo",
-    cl::desc("remove all sections that are not DWARF .dwo sections from file"));
+    cl::desc("Remove all sections that are not DWARF .dwo sections from file"));
 static cl::opt<std::string>
     SplitDWO("split-dwo",
-             cl::desc("equivalent to extract-dwo on the input file to "
+             cl::desc("Equivalent to extract-dwo on the input file to "
                       "<dwo-file>, then strip-dwo on the input file"),
              cl::value_desc("dwo-file"));
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39978.122899.patch
Type: text/x-patch
Size: 1932 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171114/e7e6ff79/attachment.bin>


More information about the llvm-commits mailing list