// clusterInfoFromArgs fills the given cluster info from a command line argument func clusterInfoFromArgs(info *providers.ClusterInfo, args []string) { if len(args) == 1 && info.Name == "" { parts := strings.SplitN(args[0], ".", 2) info.Name = parts[0] info.Domain = parts[1] } }