llvm-project/llvm/tools/llvm-rc
Fangrui Song 88478bbc60 [opt] Change the parameter of OptTable::PrintHelp from Name to Usage and don't append "[options] <inputs>"
Summary:
Before, "[options] <inputs>" is unconditionally appended to the `Name` parameter. It is more flexible to change its semantic to `Usage` and let user customize the usage line.

% llvm-objcopy
...
USAGE: llvm-objcopy <input> [ <output> ] [options] <inputs>

With this patch:

% llvm-objcopy
...
USAGE: llvm-objcopy input [output]

Reviewers: rupprecht, alexshap, jhenderson

Reviewed By: rupprecht

Subscribers: jakehehrlich, mehdi_amini, steven_wu, dexonsmith, llvm-commits

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

llvm-svn: 344097
2018-10-10 00:15:31 +00:00
..
CMakeLists.txt [llvm-rc] Handle C preprocessor output 2018-05-09 18:21:03 +00:00
LLVMBuild.txt
Opts.td [llvm-rc] Add rudimentary support for codepages 2018-05-02 19:43:44 +00:00
ResourceFileWriter.cpp [llvm-rc] Add support for the optional CLASS statement for dialogs 2018-05-15 19:21:28 +00:00
ResourceFileWriter.h [llvm-rc] Add support for the optional CLASS statement for dialogs 2018-05-15 19:21:28 +00:00
ResourceScriptCppFilter.cpp [llvm-rc] Handle C preprocessor output 2018-05-09 18:21:03 +00:00
ResourceScriptCppFilter.h [llvm-rc] Handle C preprocessor output 2018-05-09 18:21:03 +00:00
ResourceScriptParser.cpp [llvm-rc] Add support for the optional CLASS statement for dialogs 2018-05-15 19:21:28 +00:00
ResourceScriptParser.h [llvm-rc] Add support for the optional CLASS statement for dialogs 2018-05-15 19:21:28 +00:00
ResourceScriptStmt.cpp [llvm-rc] Add support for the optional CLASS statement for dialogs 2018-05-15 19:21:28 +00:00
ResourceScriptStmt.h [llvm-rc] Add support for the optional CLASS statement for dialogs 2018-05-15 19:21:28 +00:00
ResourceScriptToken.cpp [llvm-rc] Don't strictly require quotes around external file names 2018-05-08 08:47:37 +00:00
ResourceScriptToken.h [llvm-rc] Update a stale comment. NFC. 2018-05-08 12:33:54 +00:00
ResourceScriptTokenList.def llvm-rc/ResourceScriptTokenList.h: Turns this into a .def file to imply that it's non-modular 2017-11-21 00:23:19 +00:00
ResourceVisitor.h [llvm-rc] Add support for the optional CLASS statement for dialogs 2018-05-15 19:21:28 +00:00
llvm-rc.cpp [opt] Change the parameter of OptTable::PrintHelp from Name to Usage and don't append "[options] <inputs>" 2018-10-10 00:15:31 +00:00