in src/options.cc [22:32]
bool Options::is_numeric(const char *arg) {
// if first digit is 0, that should be the whole string
if (arg[0] == '0' && arg[1] != '\0') return false;
// iterate through characters
for(;*arg;arg=&arg[1]) {
if (*arg < '0' || *arg > '9') {
return false;
}
}
return true;
}