diff options
author | Jake Ehrlich <jakehehrlich@google.com> | 2017-11-14 20:36:04 +0000 |
---|---|---|
committer | Jake Ehrlich <jakehehrlich@google.com> | 2017-11-14 20:36:04 +0000 |
commit | 9157549de88cf4e22ccd10580a16fe723e6c12b8 (patch) | |
tree | cd3cb65626d74e00b67c5e146050c335bdb10409 /tools | |
parent | 96ce9ffb7dc5da19afede273fc50601c0e199036 (diff) |
[llvm-objcopy] Improve command line option help messages
I was being inconsistent with the way I was capitalizing help messages
for command line options. Additionally --remove-section wasn't using
value_desc even though it benefited from it.
Differential Revision: https://reviews.llvm.org/D39978
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318190 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-objcopy/llvm-objcopy.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/llvm-objcopy/llvm-objcopy.cpp b/tools/llvm-objcopy/llvm-objcopy.cpp index 812d27b403f..ee7785557b3 100644 --- a/tools/llvm-objcopy/llvm-objcopy.cpp +++ b/tools/llvm-objcopy/llvm-objcopy.cpp @@ -75,10 +75,11 @@ static cl::opt<std::string> InputFilename(cl::Positional, cl::desc("<input>")); 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> StripSections("strip-sections", 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")); |