Make runmode option complain, add some tests for it

This commit is contained in:
Pasi Kallinen
2021-02-12 19:38:40 +02:00
parent 2e69789e6d
commit b1097df86d
2 changed files with 18 additions and 2 deletions

View File

@@ -2822,8 +2822,10 @@ optfn_runmode(int optidx, int req, boolean negated, char *opts, char *op)
allopt[optidx].name, op);
return optn_err;
}
} else
} else {
config_error_add("Value is mandatory for %s", allopt[optidx].name);
return optn_err;
}
return optn_ok;
}
if (req == get_val) {