MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / parsePorts

Method parsePorts

src/windscribe-cli/cliarguments.cpp:207–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void CliArguments::parsePorts(const QStringList &args)
208{
209 if (args.length() <= 2) {
210 cliCommand_ = CLI_COMMAND_HELP;
211 return;
212 }
213
214 QString arg2 = args[2].toLower();
215 if (isProtocol(arg2)) {
216 protocol_ = getProtocol(arg2);
217 cliCommand_ = CLI_COMMAND_PORTS;
218 } else {
219 cliCommand_ = CLI_COMMAND_HELP;
220 }
221}
222
223void CliArguments::parseLogin(const QStringList &args)
224{

Callers

nothing calls this directly

Calls 2

isProtocolFunction · 0.85
getProtocolFunction · 0.85

Tested by

no test coverage detected