[BUG #7232] switched to argparse for argument parsing