remove superfluous argument in print_cmd_output