Converting command line client to use argparse.