parseargs vs. getopt

Chip Salzenberg chip at tct.uucp
Wed Jun 27 22:41:55 AEST 1990


From:  chip at tct.uucp (Chip Salzenberg)

According to darcy at druid.uucp (D'Arcy J.M. Cain):
>[Getarg] support[s] extra functionality which can be used if the user
>is aware of it.  For one thing, options and arguments (files) can be
>mixed instead of requiring all options to precede the files.

Consider:

	rm ./-a -b -c -d -e -f

With getopt, all five arguments are filenames.  With getarg, the first
argument is a filename and the rest are options.  This is a feature?
No thanks.

-- 
Chip Salzenberg at ComDev/TCT     <chip at tct.uucp>, <uunet!ateng!tct!chip>

Volume-Number: Volume 20, Number 53



More information about the Comp.std.unix mailing list