Optparse is deprecated since Python 3.2 (more than 10 years ago!) so it's time to migrate to the newer argparse module that is still supported.
There wasn't much to change because argparse tries as best as it can to be backward compatible. Mostly what was changed is callback arguments and handling of extra arguments.
I also deleted redundant arguments that were the default anyway.
There's still more testing to do, that is why I marked it as WIP but I wanted to get feedback as soon as possible and I hope there won't be any more changes, except bug fixes of course.
Optparse is deprecated since Python 3.2 (more than 10 years ago!) so it's time to migrate to the newer argparse module that is still supported.
There wasn't much to change because argparse tries as best as it can to be backward compatible. Mostly what was changed is callback arguments and handling of extra arguments.
I also deleted redundant arguments that were the default anyway.
There's still more testing to do, that is why I marked it as WIP but I wanted to get feedback as soon as possible and I hope there won't be any more changes, except bug fixes of course.