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

Method AddOption

src/common/cmdargparser.hpp:728–732  ·  view source on GitHub ↗

* Adds a new option to the current command. This takes only a * long option without any additional value arguments. * * @param longopt std::string of the long option name to use * @param help_text std::string containing the help text used on the * --help screen for this command * * @return Returns SingleCommandOption::Ptr belonging to the n

Source from the content-addressed store, hash-verified

726 *
727 */
728 SingleCommandOption::Ptr AddOption(const std::string &longopt,
729 const std::string &help_text)
730 {
731 return AddOption(longopt, 0, help_text);
732 }
733
734
735 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected