| 205 | } |
| 206 | |
| 207 | void 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 | |
| 223 | void CliArguments::parseLogin(const QStringList &args) |
| 224 | { |
nothing calls this directly
no test coverage detected