cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: An idea on separate options for different URLs

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 2 Aug 2004 10:42:00 +0200 (CEST)

On Mon, 2 Aug 2004, Kjell Ericson wrote:

> On Sat, 31 Jul 2004, Daniel Stenberg wrote:
>
>> curl -d "moo" URL1 : URL2 : -I URL3
>
> Very readable. I'm just worried if the ":"-sign will make any problems
> somewhere (it is also quite unorthodox).

I'm not aware of any systems where a single : on the command line will cause
troubles, and so far no one else has been able to mention any.

> Why not make it an option, like:
>
> curl -d "moo" URL1 -NEWURL URL2 -NEWURL -I URL3
>
> or "-NEXTURL" or "-NEXTCMD" or "-EXECUTE" or "-EXECUTE_AND_CLEAR"...

I think ':' makes it more readable and is a better visual separator. We could
of course also provide an alias, like "--reset" or something.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-08-02