Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!cwjcc!tut.cis.ohio-state.edu!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph R. Swick) Newsgroups: comp.windows.x Subject: Re: command line parsing under X11 Message-ID: <8902021413.AA02337@LYRE.MIT.EDU> Date: 2 Feb 89 14:13:47 GMT References: <13352@duke.cs.duke.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: DEC/MIT Project Athena Lines: 11 > Now, if we are going to keep this method of argument parsing, I > would like to suggest that it be extended. Currently, XrmParseCommand > can handle at most one argument after an option, and, of course, > I have some options that take two or more arguments. I would be amenable to a proposal to extend XrmOptionKind to include a type XrmoptionSkipNArgs which uses the value field as a count of args to be skipped. Since XrmOptionKind is an enum with only 6 values, it seems likely that this could be extended by 1 more without loosing binary compatibility on most compilers. Anyone know of any pitfalls? (Yes, it's not truly safe, but... :-)