diff options
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r-- | src/tool_getparam.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c index c8519c201..50450c25f 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -739,8 +739,14 @@ ParameterError getparameter(char *flag, /* f or -long-flag */ config->ftp_ssl_ccc_mode = ftpcccmethod(config, nextarg); break; case 'z': /* --libcurl */ +#ifdef CURL_DISABLE_LIBCURL_OPTION + warnf(config, + "--libcurl option was disabled at build-time!\n"); + return PARAM_OPTION_UNKNOWN; +#else GetStr(&config->libcurl, nextarg); break; +#endif case '#': /* --raw */ config->raw = toggle; break; |