Matthew Good wrote:

Well, the --auth option can go in any order in relation to other
"options", but the list of project names are "arguments", not options.
Options being "-p", "-d", "--auth", or anything else starting with a
dash.  Arguments are the list of additional items at the end which can
be anything (in this case project paths).  The default behavior of the
OptionParser class in Python is not to allow options and arguments to be
interspersed.

I thought that interspersed options were enabled by default. At least that's what I understand from this:

http://www.python.org/doc/current/lib/optparse-other-methods.html

I think that the bigger issue is that tracd was using getopt in 0.9.x and was only converted to optparse a few weeks ago in trunk. Now, you are right that the default behavior of getopt is to not allow interspersed options.

http://www.python.org/doc/current/lib/module-getopt.html

-John
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to