Format command line output.