aboutsummaryrefslogtreecommitdiff
path: root/lib/ubsan/ubsan_flags.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ubsan/ubsan_flags.cc')
-rw-r--r--lib/ubsan/ubsan_flags.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ubsan/ubsan_flags.cc b/lib/ubsan/ubsan_flags.cc
index 6e5ad4c7967c..20087b968782 100644
--- a/lib/ubsan/ubsan_flags.cc
+++ b/lib/ubsan/ubsan_flags.cc
@@ -60,6 +60,9 @@ void InitializeFlags() {
// Override from environment variable.
parser.ParseString(GetEnv("UBSAN_OPTIONS"));
SetVerbosity(common_flags()->verbosity);
+ if (Verbosity()) ReportUnrecognizedFlags();
+
+ if (common_flags()->help) parser.PrintFlagDescriptions();
}
} // namespace __ubsan