Add error class
Total change of optparse to argparse