code: func handleEndpointFlag(m Member, useEnv bool, args *[]string) {
  	result := true
  	for _, arg := range *args {
  		if strings.Contains(arg, "-- ") || strings.Contains(arg, "--tunnel") {
  			result = false
  			break
  		}
  	}
  	if result {
  		if useEnv {
  			os.Setenv("FLEETCTL_ENDPOINT", m.Endpoint())
  		} else {
  			*args = append([]string{"--endpoint=" + m.Endpoint()}, *args...)
  		}
  	}
  }
docs: // This function either adds --endpoint flag or set env variable
  // FLEETCTL_ENDPOINT, if --tunnel flag is not used.
  // Useful for "fleetctl fd-forward" tests