Explorar o código

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>
Kareem Ergawy %!s(int64=3) %!d(string=hai) anos
pai
achega
dc43767b16
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      toolchain/driver/driver.cpp

+ 2 - 2
toolchain/driver/driver.cpp

@@ -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();