updated wt_terminal to parse more cmd arguments.