Some clean and end work for graphic mode options(argv[1])