Command/getdocumentargument

From ConTeXt wiki

\getdocumentargument

Syntax

\getdocumentargument{...}
{...} argument name

Description

Expands to the value of a command-line argument.

Example

% test.tex
\starttext
Number: \doifdocumentargument{Number}{\getdocumentargument{Number}}
Time: \doifdocumentargument{Time}{\getdocumentargument{Time}}
\stoptext
context --Number=10 --Time="half minutes" test.tex
# or
context test.tex --Number=4 --Time=now


See also

Help from ConTeXt-Mailinglist/Forum

All issues with: