command line options

Doug Gwyn gwyn at brl-smoke.ARPA
Tue Apr 12 05:30:03 AEST 1988


In article <192 at sdeggo.UUCP> dave at sdeggo.UUCP (David L. Smith) writes:
> I don't see anything grandiose about adding "-HELP" into getopt and having
> that return a '?' to the calling program.  Do you?  This would only require
> recompilation to work.

It won't work at all!  -HELP already has a standard meaning and getopt()
supports it: this is equivalent to -H -E -L -P.

> The "-?" would not be useful with those programs like sed and grep which 
> process regular expressions.  

Sure it would, so long as they follow the command syntax standard.
In fact it ALREADY is useful with such commands.



More information about the Comp.unix.wizards mailing list