Refine command line arguments.