Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!sharkey!edsews!uunet!mcvax!guido From: guido@cwi.nl (Guido van Rossum) Newsgroups: comp.windows.x Subject: Re: command line parsing under X11 Message-ID: <7871@boring.cwi.nl> Date: 2 Feb 89 22:19:52 GMT References: <13352@duke.cs.duke.edu> Sender: news@cwi.nl Reply-To: guido@cwi.nl (Guido van Rossum) Organization: The Royal Society for Prevention of Cruelty to Amoebae Lines: 9 My strategy in such cases is to tell X or Xt about 'nearly impossible' options starting with -a, -b, -c, etc.; e.g., "-a\377". In this way at least two-character abbreviations for any options Xt knows about are required, and I can use getopt() or a similar parser for my own options. -- Guido van Rossum, Centre for Mathematics and Computer Science (CWI), Amsterdam guido@cwi.nl or mcvax!guido or guido%cwi.nl@uunet.uu.net Hackers' motto: "If all else fails, read the Unix kernel source."