| 88 | } |
| 89 | |
| 90 | bool cCommandlineParser::getBoolean(const char *name) const |
| 91 | { |
| 92 | const sCmdlineOpt *opt = findOpt(name); |
| 93 | if (opt == NULL) { |
| 94 | COMP_ERR("boolean commandline argument '%s' not found!", name); |
| 95 | } |
| 96 | if (opt->type != eCmdlineOptType::Boolean) { |
| 97 | COMP_ERR("requested commandline argument '%s' is not of type boolean!", name); |
| 98 | } |
| 99 | return opt->getBoolean(); |
| 100 | } |
| 101 | |
| 102 | int cCommandlineParser::getInt(const char *name) const |
| 103 | { |