getdistopt
if ((distopt = getdistopt(optstr, &len)) != NULL) {
if ((distopt = getdistopt(optstr+2, &len)) != NULL) {