cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl: option --compressed: the installed libcurl version doesn't support this

From: Aleksandar Lazic <al-curlusers_at_none.at>
Date: Thu, 07 Feb 2013 11:20:55 +0100

Am 06-02-2013 15:11, schrieb Daniel Stenberg:
> On Wed, 6 Feb 2013, Aleksandar Lazic wrote:
>
> today I have build curl 7.29.0 without zlib.
>
> When I call 'curl -h' I get the option '--compressed' shown, but
> curl/libcurl was build without zlib.
>
> Correct. The -h / --help output is the same no matter the
> capabilities of the underlying libraries.
>
> The reasons for this are primarily:
>
> 1 - because it can be really hard to pre-determine exactly what
> features that
> can be used or not and in particular because the current code has
> no logic
> in place that can filter the -h list depending on underlying
> capabilities
>
> 2 - you can argue that -h outputs all the available options for the
> curl tool
> provided that the library is supported. I'm not convinced that we
> should
> stop advertising options just because libcurl right then doesn't
> support
> the option but rather show them so that you'll get a consistent
> list that
> is stable and you can also learn about options you may want to use
> once
> you get a more complete libcurl to use...
>
> You'll see that if you try to actually use the option it will fail
> with an error message.

Thank you for your answer.
I think I understand your arguments.

Due to the fact that in src/tool_help.c some '#if defined...' I thought
that
this was just a bug.

I accept the current behaviour and thanks for this great tool and
library.

Best regards
Aleks
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-07