Remove printing text if output arg is provided