add parse_cmdline.c. can be used create and parse cmdline