cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: --trace handling

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 19 Jan 2004 23:18:44 +0100 (CET)

On Mon, 19 Jan 2004, David Byron wrote:

> I see a couple of problems with the way --trace is currently handled. I'm
> working with this version of curl and have a pretty fresh (couple of hours)
> cvs checkout.

I've applied and committed your fixes. Thanks!

> The patch is attached. I'm concerned that the behavior when specifying
> --trace without the required argument on the command line is different than
> when you do that in a config file. On the command line, curl doesn't
> download anything and returns exit code 2. In the config file, curl prints
> a warning and continues on its way. My reflex is to make the behavior the
> same both ways but I thought I'd take this one step at a time.

Possibly. I think my intention here was that a config file might still serve a
purpose even if a line doesn't get used. I think a config file differs
slightly from the command line in that aspect, but that's just how I view
them. I agree that they do treat the same error different.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-19