>From: "E. Robert Bogusta" <[EMAIL PROTECTED]>

>> -j is most certainly not standard.  Debian woody and sid have that
>> option, potato had -I instead, and I think redhat uses -y, and the GNU
>> tar maintainer prefers --bzip2.  Using -bz makes more sense than anything
>> other than --bzip2, and the double dash option system is also not that
>> nice, nor consistant.

>RH uses all of -j -I and --bzip, Slackware uses -y. The nice thing about
>the double dash system is that it's easy to write and parse. Anyone who
>has had to specify filenames with "=" embedded to cdrecord will understand
>how nice it would be to only have to worry about filenames starting with
>-- instead.

All Schily programs use my getargs() function which gives much less problems 
than GNU getlongopt().

getargs() is ~ 10 years older than getlongopt() and behaves consitstent.
It has no need to rearange argv order in order to be able to work.

It supports many things that cannot be implemented using GNU getlongopt().
If you ever have problems with a file type arg that looks like an option,
just preceede this arg with '--'. If you like to make sure that a series
of characters is a long option, just use --option instead of -option.


If you lik to see the advantage for Joe User, call a program that uses
getargs() with a program that uses getlongopt() with illegal options
(long options that look similar to 'official' long options) and compare the 
error messages with the error messages you get from a GNU program that uses
getlongopt().




Jörg

 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]               (uni)  If you don't have iso-8859-1
       [EMAIL PROTECTED]           (work) chars I am J"org Schilling
 URL:  http://www.fokus.gmd.de/usr/schilling   ftp://ftp.fokus.gmd.de/pub/unix


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to