Parses a command‐line flag string representation text into a Duration value. Duration flags must be specified in a format that is valid input for absl::ParseDuration().
Synopsis
Declared in <absl/time/time.h>
bool
AbslParseFlag(
std::string_view text,
Duration* dst,
std::string* error);
Return Value
true upon successful parsing.
Parameters
Name |
Description |
text |
The flag string to parse. |
dst |
Output parameter receiving the parsed duration. |
error |
Output parameter receiving an error message on failure. |
Created with MrDocs