| 100 | } |
| 101 | |
| 102 | int cCommandlineParser::getInt(const char *name) const |
| 103 | { |
| 104 | const sCmdlineOpt *opt = findOpt(name); |
| 105 | if (opt == NULL) { |
| 106 | COMP_ERR("int commandline argument '%s' not found!", name); |
| 107 | } |
| 108 | if (opt->type != eCmdlineOptType::Int) { |
| 109 | COMP_ERR("requested commandline argument '%s' is not of type int!", name); |
| 110 | } |
| 111 | return opt->getInt(); |
| 112 | } |
| 113 | |
| 114 | double cCommandlineParser::getDouble(const char *name) const |
| 115 | { |
no outgoing calls
no test coverage detected