[Svnmerge] Command line options order

Giovanni Bajo rasky at develer.com
Fri Nov 4 14:46:44 PST 2005


Blair Zajac <blair at orcaware.com> wrote:

> In looking at svnmerge.py, I see there's a custom class for dealing
> with command line options, so it's not strictly the getopt module I
> was expecting before looking at it.

Well, it's getopt + syntactic sugar galore. If you look at def _fancy_getopt
you'll see I call getopt twice: the first time it's supposed to parse all the
options up to the command name (and it understands only global options). Then
it pops the command name, retrieves its option list, and parse the rest of the
command line. Your recommendation should apply as well.

Giovanni Bajo




More information about the Svnmerge mailing list