Hi all, Is it possible to store context command line arguments into lua variables?
I found http://wiki.contextgarden.net/Command/getdocumentargument but it only prints the argument. I can not store it for further processing. What I would like to do is something like this: -- start of the example something = context.getcommandlineargument("ARG1") -- doesn't exist -- make some tests here to check if 'something' has the right syntax context.startdocument{title = something} context.input("knuth") context.stopdocument() -- end of the example Then, one has just to launch: $ context file.cld --ARG1="My first title" Thanks in advance. -- Romain Diss ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________