I was wondering if it was possible to define a group of modes, such as only one can be used. A MWE is :
\environment myEnvironment \starttext \startmode[modeA] This is mode A \stopmode \startmode[modeB] This is mode B \stopmode \stoptext
which displays "This is mode A" when run with
context --mode=modeA file.tex
and "This is mode B" when run with
context --mode=modeB file.tex
The bonus question is : is there a way to automatically (I mean without manually typing --result=newName) generate different output files (like file_modeA.pdf in the first case and file_modeB.pdf in the second).