absl::FindCommandLineFlag

Returns the reflection handle of an Abseil flag of the specified name, or nullptr if not found. This function will emit a warning if the name of a 'retired' flag is specified.

Synopsis

Declared in <absl/flags/reflection.h>

absl::CommandLineFlag*
FindCommandLineFlag(std::string_view name);

Return Value

The reflection handle for the flag, or nullptr if not found.

Parameters

NameDescription
nameThe name of the flag to look up.