parse_ports cmd switch