You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: client.go
    path of file: ./repos/cloudprober/prober/cmd
    
    the code of the file until where you have to start completion: // Copyright 2019 The Cloudprober Authors.
//
// Licensed under the Apache License, Version 2.0 (the
    
func main() {
	flag.Parse()

	conn, err := grpc.Dial(*server, grpc.WithInsecure())
	if err != nil {
		glog.Fatal(err)
	}

	client := spb.NewCloudproberClient(conn)

	if *addProbe != "" && *rmProbe != "" {
		glog.Fatal("Options --add_probe and --rm_probe cannot be specified at the same time")
	}

	if *rmProbe != "" {
		_, err := client.RemoveProbe(context.Background(), &pb.RemoveProbeRequest{ProbeName: rmProbe})
		if err != nil {
			glog.Exit(err)
		}
	}

	if *addProbe != "" {
		b, err := ioutil.ReadFile(*addProbe)
		if err != nil {
			glog.Exitf("Failed to read the config file: %v", err)
		}

		glog.Infof("Read probe config: %s", string(b))

		cfg := &configpb.ProbeDef{}
		if err := proto.UnmarshalText(string(b), cfg); err != nil {
			glog.Exit(err)
		}

		_, err = client.AddProbe(context.Background(), &pb.AddProbeRequest{ProbeConfig: cfg})
		if err != nil {
			glog.Exit(err)
		}
	}
}