<%define#parse_args
  <%set:stop <%next_arg\%>%>
  <%while#
    <%super#<%has_more_data\%>%>
    <%and not equal:<%set:name <%super#<%next_arg\%>%>%> <%stop\%>%>
    <%and super#<%set:arg_<%outer#<%name\%>%> <%next_arg\%>%>%>
  %>
%>

<%define#test
  <%silent parse_args:g%>\
  *<%arg_a\%>*
  *<%arg_b\%>*
  *<%arg_g\%>*
  **<%data\%>**
%>

<%test:
  a 1
  b 2
  g 3 4 5 6
%>