| 124 | } |
| 125 | |
| 126 | const char * cCommandlineParser::getStr(const char *name) const |
| 127 | { |
| 128 | const sCmdlineOpt *opt = findOpt(name); |
| 129 | if (opt == NULL) { |
| 130 | COMP_ERR("string commandline argument '%s' not found!", name); |
| 131 | } |
| 132 | if (opt->type != eCmdlineOptType::Str) { |
| 133 | COMP_ERR("requested commandline argument '%s' is not of type string!", name); |
| 134 | } |
| 135 | return opt->getStr(); |
| 136 | } |
| 137 | |
| 138 | bool cCommandlineParser::isSet(const char *name) const |
| 139 | { |
no outgoing calls
no test coverage detected