Fix a small typo in the driver help message. (#2261)

The help message was using `_`s while the actual sub-commands use `-`.

Co-authored-by: ergawy <kareem.ergawy@guardsquare.com>
This commit is contained in:
Kareem Ergawy
2022-10-05 09:23:18 -07:00
committed by GitHub
co-authored by ergawy
parent 8f0f69b65f
commit dc43767b16
+2 -2
View File
@@ -119,8 +119,8 @@ auto Driver::RunDumpSubcommand(DiagnosticConsumer& consumer,
.Case("semantics-ir", DumpMode::SemanticsIR)
.Default(DumpMode::Unknown);
if (dump_mode == DumpMode::Unknown) {
error_stream_ << "ERROR: Dump mode should be one of tokens, parse_tree, or "
"semantics_ir.\n";
error_stream_ << "ERROR: Dump mode should be one of tokens, parse-tree, or "
"semantics-ir.\n";
return false;
}
args = args.drop_front();