code: func ParseClusterAdvertiseSettings(clusterStore, clusterAdvertise string) (string, error) {
  	if clusterAdvertise == "" {
  		return "", daemondiscovery.ErrDiscoveryDisabled
  	}
  	if clusterStore == "" {
  		return "", errors.New("invalid cluster configuration. --cluster-advertise must be accompanied by --cluster-store configuration")
  	}
  
  	advertise, err := discovery.ParseAdvertise(clusterAdvertise)
  	if err != nil {
  		return "", errors.Wrap(err, "discovery advertise parsing failed")
  	}
  	return advertise, nil
  }
docs: // ParseClusterAdvertiseSettings parses the specified advertise settings