cleanup command line parsing