Mercurial > hg > tema
view test/parse_args.tema @ 34:7129dfb130e1
Update Apache Commons CLI. Update NOTICE.
(transplanted from 3f7901c9de87fcaf562363772b1de6eeaeb98805)
author | Mikhail Kryshen <mikhail@kryshen.net> |
---|---|
date | Tue, 10 Nov 2009 04:07:03 +0300 |
parents | 54539dff18ca |
children |
line wrap: on
line source
<%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 %>