aboutsummaryrefslogtreecommitdiff
path: root/absl/flags/internal/parse.h
diff options
context:
space:
mode:
authorGennadiy Rozental <rogeeff@google.com>2023-03-21 01:04:30 -0700
committerCopybara-Service <copybara-worker@google.com>2023-03-21 01:05:15 -0700
commit819272485a0c06abc8d7d62b188a6f54174881cb (patch)
tree736d215cde8a2598026632c51f3453b4b56036c1 /absl/flags/internal/parse.h
parent396e9764cded739f595ba880b95b061051c49128 (diff)
downloadabseil-819272485a0c06abc8d7d62b188a6f54174881cb.tar.gz
abseil-819272485a0c06abc8d7d62b188a6f54174881cb.tar.bz2
abseil-819272485a0c06abc8d7d62b188a6f54174881cb.zip
Change ParseAbseilFlagsOnly function to include handling of usage flags and exit on syntax errors.
PiperOrigin-RevId: 518198160 Change-Id: Ib4fe53e0b0b371472b6b9473aeb84779953b6a38
Diffstat (limited to 'absl/flags/internal/parse.h')
-rw-r--r--absl/flags/internal/parse.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/absl/flags/internal/parse.h b/absl/flags/internal/parse.h
index 145e591d..e4352049 100644
--- a/absl/flags/internal/parse.h
+++ b/absl/flags/internal/parse.h
@@ -21,6 +21,7 @@
#include "absl/base/config.h"
#include "absl/flags/declare.h"
+#include "absl/flags/internal/usage.h"
#include "absl/strings/string_view.h"
ABSL_DECLARE_FLAG(std::vector<std::string>, flagfile);
@@ -40,8 +41,8 @@ enum class OnUndefinedFlag {
};
std::vector<char*> ParseCommandLineImpl(int argc, char* argv[],
- UsageFlagsAction usage_flag_act,
- OnUndefinedFlag on_undef_flag);
+ UsageFlagsAction usage_flag_action,
+ OnUndefinedFlag undef_flag_action);
// --------------------------------------------------------------------
// Inspect original command line