reorder and update command line info