Rewrite CLI to use standard argparse module.