Interpret a raw configuration value according to a key and its flags.
Declared in <common/args.h>
std::optional<common::SettingsValue>
InterpretValue(
KeyInfo const& key,
std::string const* value,
unsigned int flags,
std::string& error);
The interpreted setting value, or std::nullopt on error.
| Name | Description |
|---|---|
| key | The parsed key the value belongs to. |
| value | The raw value string, or nullptr if no value was given. |
| flags | Argument flags controlling validation and interpretation. |
| error | Populated with a message if interpretation fails. |