Fix option parsing

This commit is contained in:
Quentin Dufour 2019-03-28 15:35:48 +01:00
parent 12c057e651
commit 044989b8d5

View file

@ -15,7 +15,7 @@ int main(int argc, char** argv) {
struct donar_params dp;
donar_init_params (&dp);
while ((dp.opt = getopt(argc, argv, "csh:e:r:o:a:b:h:")) != -1) {
while ((dp.opt = getopt(argc, argv, "cse:r:o:a:bh")) != -1) {
switch(dp.opt) {
case 's':
dp.is_server = 1;