Add a flag "--comments" for debugging information.

Bug: 249016777
Test: Presubmit
Change-Id: I9fc9fa86b8cd442f29793743d3b7d6ffb5965628
diff --git a/dex2oat/dex2oat_options.cc b/dex2oat/dex2oat_options.cc
index 1f9138e..e9ff28b 100644
--- a/dex2oat/dex2oat_options.cc
+++ b/dex2oat/dex2oat_options.cc
@@ -448,7 +448,8 @@
           .IntoKey(M::ForceJitZygote)
       .Define("--force-palette-compilation-hooks")
           .WithHelp("Force PaletteNotify{Start,End}Dex2oatCompilation calls.")
-          .IntoKey(M::ForcePaletteCompilationHooks);
+          .IntoKey(M::ForcePaletteCompilationHooks)
+      .Ignore({"--comments=_"});
 
   AddCompilerOptionsArgumentParserOptions<Dex2oatArgumentMap>(*parser_builder);