Using getopt to parse multi-argument options

Doug Gwyn gwyn at smoke.BRL.MIL
Mon Jan 16 02:29:36 AEST 1989


In article <3652 at phri.UUCP> roy at phri.UUCP (Roy Smith) writes:
>	I'm writing a program which will take an optional range, in the
>style of graph(1)'s "-x xmin xmax".  How do I tell getopt to parse
>something like that?

You don't.  getopt() was written to support the Command Syntax
Standard, and that usage is a violation of the Standard.



More information about the Comp.lang.c mailing list