use stdout, only print newline if passing via command-line args