Re: [NTG-context] How to store command line arguments in ConTeXt LUA Documents?

2016-03-15 Thread Hans Hagen
On 3/14/2016 10:46 PM, Romain Diss wrote: Is it possible to store context command line arguments into lua variables? [...] 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

Re: [NTG-context] How to store command line arguments in ConTeXt LUA Documents?

2016-03-14 Thread Romain Diss
> >Is it possible to store context command line arguments into lua > >variables? > > [...] > >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

Re: [NTG-context] How to store command line arguments in ConTeXt LUA Documents?

2016-03-13 Thread Hans Hagen
On 3/13/2016 1:43 PM, Romain Diss wrote: 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 s

[NTG-context] How to store command line arguments in ConTeXt LUA Documents?

2016-03-13 Thread Romain Diss
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 exampl