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

Method CheckCommandName

src/common/cmdargparser.hpp:822–826  ·  view source on GitHub ↗

* Check if the currently registered command name matches the one * provided in the argument. * * @param cmdn std::string of the command name to match against. * @return */

Source from the content-addressed store, hash-verified

820 * @return
821 */
822 bool CheckCommandName(const std::string &cmdn)
823 {
824 return (cmdn == command)
825 || (!alias_cmd.empty() && cmdn == alias_cmd);
826 }
827
828
829 /**

Callers 1

ProcessCommandLineMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected