[Trac-tickets] [The Trac Project] #2983: Proposal to add
util.parseargs
The Trac Project
noreply at edgewall.com
Tue Apr 4 20:16:02 CDT 2006
#2983: Proposal to add util.parseargs
---------------------+------------------------------------------------------
Reporter: athomas | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone:
Component: general | Version: 0.9.4
Severity: normal | Keywords:
---------------------+------------------------------------------------------
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
[http://muness.textdriven.com/svn/edu/support/trac/tags-
plugin/tractags/parseargs.py 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.
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2983>
The Trac Project <http://trac.edgewall.com/>
More information about the Trac-Tickets
mailing list