MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / register_option

Method register_option

src/common/cmdargparser.cpp:316–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314
315
316void RegisterParsedArgs::register_option(const std::string &k, const char *v)
317{
318 if (nullptr != v)
319 {
320 key_value[k].push_back(filter_ctrl_chars(v, true));
321 }
322 if (std::find(present.begin(), present.end(), k) != present.end())
323 {
324 // Don't register duplicates
325 return;
326 }
327 present.push_back(k);
328}
329
330
331void RegisterParsedArgs::register_extra_args(const char *e)

Callers 1

parse_commandlineMethod · 0.80

Calls 1

filter_ctrl_charsFunction · 0.85

Tested by

no test coverage detected