Enrico Forestieri wrote:
On Sat, Nov 25, 2006 at 11:42:16PM +0100, Abdelrazak Younes wrote:
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"
Using this exact command I get the same assert as Georg. However, this
is not supposed to work, or at least I cannot get it working neither in
1.3.7 nor in 1.4.3.
Instead, the following one seems to work (even in a cmd terminal):
lyx -x "command-sequence file-open UserGuide.lyx ; repeat 10 screen-down ;
lyx-quit"
Or, more precisely, it almost works. Indeed, the commands are executed
but the splash screen is always shown; then the main window closes but
lyx never returns and must be killed.
I see that too and I know the problems. I will solve that.
Abdel.