MCPcopy Create free account
hub / github.com/cvanaret/Uno / get_string_optional

Method get_string_optional

uno/options/Options.cpp:200–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198 }
199
200 std::optional<std::string> Options::get_string_optional(const std::string& option_name) const {
201 try {
202 const std::string& option_value = this->string_options.at(option_name);
203 this->used[option_name] = true;
204 return option_value;
205 }
206 catch(const std::out_of_range&) {
207 return std::nullopt;
208 }
209 }
210
211 OptionType Options::get_option_type(const std::string& option_name) const {
212 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected