| 47 | } |
| 48 | |
| 49 | void cCommandlineParser::addDouble(const char *name, char abbr, const char *description, double dflt, bool argMandatory, bool isMandatory) |
| 50 | { |
| 51 | sCmdlineOpt &opt = addOpt(name, abbr, description, eCmdlineOptType::Double, argMandatory, isMandatory); |
| 52 | opt.setDouble(dflt); |
| 53 | opt.setInt((int)dflt); // we also set it as int in case someone tries to access the value as such |
| 54 | } |
| 55 | |
| 56 | void cCommandlineParser::addStr(const char *name, char abbr, const char *description, const char *dflt, bool argMandatory, bool isMandatory) |
| 57 | { |
no test coverage detected