Skip to content

Commit

Permalink
[llvm-objdump] Require long options to use double-dash --long-option
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Mar 16, 2020
1 parent f0374e7 commit 5c3ec7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llvm/tools/llvm-objdump/llvm-objdump.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit 5c3ec7d

Please sign in to comment.