Added argparse support to the client script.

This looks better than the last attempt.