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().
Declared in <absl/time/time.h>
bool
AbslParseFlag(
std::string_view text,
Duration* dst,
std::string* error);
true upon successful parsing.
| Name | Description |
|---|---|
| text | The flag string to parse. |
| dst | Output parameter receiving the parsed duration. |
| error | Output parameter receiving an error message on failure. |