revise command line code