Ticket #2983 (reopened enhancement)
Proposal to add util.parseargs
| Reported by: | athomas | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11.3 |
| Component: | wiki system | Version: | devel |
| Severity: | normal | Keywords: | macro |
| Cc: | martin@… |
Description
It seems that almost every macro has to reimplement its own argument parser. This doesn't seem ideal.
I've implemented a generic argument parser for the tags plugin, available here. It parses arguments like this: kw=(a, b, c), foo, bar, and returns a tuple of (positional[], keywords{}).
If you think this is a good idea, I can clean it up for submission.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


