Georg Baum wrote:
Abdelrazak Younes wrote:

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:

No, that is very easy: Each option knows how many arguments it needs.

./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.

That is a different problem. AFAIK on windows, you should use " for quoting,
not '.

No, replacing with double quotes does not work either. But at least LyX is started and no Buffer is opened.

I've tried that instead but LyX crashes :-/

lyx-qt4.exe UserGuide.lyx -x "command-sequence buffer-begin ; repeat 100 screen-down ; lyx-quit"

Abdel.



Reply via email to