code: def check_port(helper, port):
      
      try:
          int(port)
      except ValueError:
          helper.exit(summary="Port (-p) must be a integer value.", exit_code=unknown, perfdata='')
docs: check if the port parameter is really a port or "scan"