I think we should be using `argparse` because `optparse` is deprecated since 2.7. The switch should be easy because their usage is very similar.