diff --git a/src/main.c b/src/main.c index 7de7e42d9..e266351a2 100644 --- a/src/main.c +++ b/src/main.c @@ -1818,9 +1818,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ return PARAM_OPTION_UNKNOWN; } } - if(hit < 0) { - return PARAM_OPTION_UNKNOWN; - } + if(aliases[hit].extraparam) { /* this option requires an extra parameter */ if(!longopt && parse[1]) {