Cleans up command line argument parsing