scripts: migrated from optparse to argparse