Changed from deprecated optparse to argparse