mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
curl: make -N handled correctly
Options marked ARG_NO should have their 'toggle' value reverted when the short option is used as it implies using the --no- prefix. -N happens be the only short option flag for a --no- long option. Reported-by: Stefan Eissing Closes #17527
This commit is contained in:
parent
741748e341
commit
c7658f274c
@ -2881,6 +2881,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
||||
err = PARAM_OPTION_UNKNOWN;
|
||||
break;
|
||||
}
|
||||
toggle = !(a->desc & ARG_NO);
|
||||
}
|
||||
if((a->desc & ARG_TLS) && !feature_ssl) {
|
||||
err = PARAM_LIBCURL_DOESNT_SUPPORT;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user