fix some command line parsing cases