optimize command-line output