[llvm-objdump] Require long options to use double-dash --long-option

As announced here: http://lists.llvm.org/pipermail/llvm-dev/2019-April/131786.html
This commit is contained in:
Fangrui Song 2020-03-15 16:47:49 -07:00
parent f0374e7db2
commit 5c3ec7dc41

View File

@ -2339,7 +2339,9 @@ int main(int argc, char **argv) {
// Register the target printer for --version.
cl::AddExtraVersionPrinter(TargetRegistry::printRegisteredTargetsForVersion);
cl::ParseCommandLineOptions(argc, argv, "llvm object file dumper\n");
cl::ParseCommandLineOptions(argc, argv, "llvm object file dumper\n", nullptr,
/*EnvVar=*/nullptr,
/*LongOptionsUseDoubleDash=*/true);
if (StartAddress >= StopAddress)
reportCmdLineError("start address should be less than stop address");