On Fri, Nov 24, 2006 at 01:37:55PM +0100, Abdelrazak Younes wrote: > >Why bug prone? Some of my own programs work well like this: Parse any > >potential options, and everything that is left aftre that must be a file > >name. > > The problems arrive when some options require one argument, others > require two arguments, etc. Then it is very difficult to know which is a > wrong option argument and which is a filename. At least LyX cannot make > the difference, I noticed that with this command line on windows: > > ./lyx -x 'command-sequence buffer-load UserGuide.lyx ; buffer-begin ; > repeat 100 screen-down ; lyx-quit' > > This command opens multiple new Buffers with the names 'buffer-load', > ';' etc.
But that's because the Windows shell is no real shell in the Unix sense as it does not understand single quotes (and has funny rules fow double quotes for that matter) As far as I know there's a simple lib to link to to give that ability also to Windows programs, but I'd need to ask my colleague who is much more proficient in this area for details. Andre'