MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / IsCliArg

Function IsCliArg

engine/Poseidon/Foundation/Platform/AppConfig.cpp:125–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 return CliAppRole::Game;
124}
125
126bool IsCliArg(const std::string& arg, const char* name)
127{
128 if (arg == name)
129 return true;
130
131#ifdef _WIN32
132 if (name[0] == '-' && name[1] == '-' && arg.size() == strlen(name) - 1 && arg[0] == '/')
133 return _stricmp(arg.c_str() + 1, name + 2) == 0;
134#endif
135
136 return false;
137}
138
139CliHelpMode DetectHelpMode(const std::vector<std::string>& args)

Callers 2

DetectHelpModeFunction · 0.85
ContainsCliArgFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected