| 40 | } |
| 41 | |
| 42 | void cCommandlineParser::addInt(const char *name, char abbr, const char *description, int dflt, bool argMandatory, bool isMandatory) |
| 43 | { |
| 44 | sCmdlineOpt &opt = addOpt(name, abbr, description, eCmdlineOptType::Int, argMandatory, isMandatory); |
| 45 | opt.setInt(dflt); |
| 46 | opt.setDouble(dflt); // we also set it as double in case someone tries to access the value as such |
| 47 | } |
| 48 | |
| 49 | void cCommandlineParser::addDouble(const char *name, char abbr, const char *description, double dflt, bool argMandatory, bool isMandatory) |
| 50 | { |