I'm trying to build a user-defined command called mycommand and followed the hints on (https://wiki.contextgarden.net/ConTeXt_and_Lua_programming/Tutorials/System_Macros/Handling_Arguments)
\def\dodefinemycommand[#1][#2]% {\getparameters[\??xx#1][#2]}
\def\mycommand% {\dodoubleargumentwithset\dodefinemycommand \strut\blank[2*big] See what happens: \@@xxonex}
and call it with:\mycommand[one,two][x=1,y=2]
This yields a fatal error; while I'd expect something like:
See what happens: 1
What am I doing wrong here?