The passed in tool name is not used, causing the wrong tool name to be printed by the help text.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D94120
llvm::cl::Required);
registerAsmPrinterCLOptions();
registerMLIRContextCLOptions();
- llvm::cl::ParseCommandLineOptions(argc, argv, "MLIR translation driver\n");
+ llvm::cl::ParseCommandLineOptions(argc, argv, toolName);
std::string errorMessage;
auto input = openInputFile(inputFilename, &errorMessage);
--- /dev/null
+// RUN: mlir-translate --help | FileCheck %s
+// CHECK: OVERVIEW: MLIR Translation Testing Tool
\ No newline at end of file