summaryrefslogtreecommitdiff
path: root/absl/flags/parse.h
diff options
context:
space:
mode:
authorGravatar Gennadiy Rozental <rogeeff@google.com>2023-03-13 21:22:11 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-03-13 21:22:51 -0700
commit6db185d8e2ba93adf32d689fd702ee0465b2e5ec (patch)
tree9726a1a6a1e38b7c579feacb53ae6922dbdbb655 /absl/flags/parse.h
parent52578edd8950227f1eb28821622c861804241de6 (diff)
Correct semantic and documentation for the ReportUnrecognizedFlags interface
PiperOrigin-RevId: 516411395 Change-Id: I442fc9435bd7a829802c325e2e4106aa6775c263
Diffstat (limited to 'absl/flags/parse.h')
-rw-r--r--absl/flags/parse.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/absl/flags/parse.h b/absl/flags/parse.h
index a5629375..97327274 100644
--- a/absl/flags/parse.h
+++ b/absl/flags/parse.h
@@ -90,17 +90,10 @@ bool ParseAbseilFlagsOnly(int argc, char* argv[],
// ReportUnrecognizedFlags()
//
-// Reports an error for all non-ignored unrecognized flags in the provided
-// `unrecognized_flags` list.
-//
-// If `report_fatal_error` is true, the fatal error is reported and program is
-// aborted. Otherwise non-fatal error is reported for all flags.
-//
-// This function returns true if any non-ignored unrecognized flags were
-// located in the list and false otherwise.
+// Reports an error to `stderr` for all non-ignored unrecognized flags in
+// the provided `unrecognized_flags` list.
void ReportUnrecognizedFlags(
- const std::vector<UnrecognizedFlag>& unrecognized_flags,
- bool report_fatal_error);
+ const std::vector<UnrecognizedFlag>& unrecognized_flags);
// ParseCommandLine()
//