From 07c67138c9d4ee437b02d1e5d50f64327f362642 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 30 Nov 2001 09:26:06 +0000 Subject: fixed the option parser to not loop when a long option is specified --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index c332f6a47..589892b34 100644 --- a/src/main.c +++ b/src/main.c @@ -1464,7 +1464,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ } hit = -1; - } while(!singleopt && *++parse && !*usedarg); + } while(!longopt && !singleopt && *++parse && !*usedarg); return PARAM_OK; } -- cgit v1.2.3