Format command line output