Clean up argument parsing.