clean up command line processing