updated from optparse to argparse