Path: utzoo!attcan!uunet!lll-winken!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Using getopt to parse multi-argument options Message-ID: <9383@smoke.BRL.MIL> Date: 15 Jan 89 16:29:36 GMT References: <3652@phri.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <3652@phri.UUCP> roy@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.