code: func getServer() (string, error) {
  	if s := os.Getenv("CAMLI_SERVER"); s != "" {
  		return cleanServer(s)
  	}
  	if flagServer != "" {
  		if !isURLOrHostPort(flagServer) {
  			configOnce.Do(parseConfig)
  			serverConf, ok := config.Servers[flagServer]
  			if ok {
  				return serverConf.Server, nil
  			}
  			log.Printf("%q looks like a server alias, but no such alias found in config.", flagServer)
  		} else {
  			return cleanServer(flagServer)
  		}
  	}
  	server, err := defaultServer()
  	if err != nil {
  		return "", err
  	}
  	if server == "" {
  		return "", camtypes.ErrClientNoServer
  	}
  	return cleanServer(server)
  }
docs: // getServer returns the server's URL found either as a command-line flag,
  // or as the default server in the config file.