translate/translate — pull request #90 by dwaynebailey (2014-02-17 10:00:11+00:00)
Title: Convert optrecurse to use argparse

This is a first pass of removing ``optparse`` from ``misc/optrecurse``. It is probably ready for testing more then it is ready for review.

The strategy has been to remove optparse then pick through breakage to remove optparse methods and classes and replace them with argparse.

At the current state we can:

1. Pass all tests
2. We don't actually work for ``--manpage`` - lots of work needed there
3. There might be some optrecurse positional logic that is broken

At the moment I am not looking are prettiness of code and styleguides. In fact changes have tried to minimise disruption of layout so that you can see what changed.

When the optparse ripout has finished I'd like a separate PR to deal with:

1. Moving ``argparse._Action()`` classes to use ``add_argument`` i.e. use public methods
2. Create a styleguide for layout of add_argument, at the moment they are inconsistent and hard to read
3. Remove any setting of ``add_argument`` values that are just repeating the default.

Once we are at this state of cleanup we can then look at moving options around. I think the aim here is to reduce to size of optrecurse and look to moving options up to storage classes.