func newGlobalFlags()

in go/grpshuffle_client/main.go [102:128]


func newGlobalFlags() []cli.Flag {
	return []cli.Flag{
		&cli.StringFlag{
			Name:        "host",
			Aliases:     []string{"H"},
			Usage:       "Host address of server",
			EnvVars:     []string{"GRPSHUFFLE_HOST"},
			Value:       "localhost",
			Destination: &grpshuffleClient.Host,
		},
		&cli.IntFlag{
			Name:        "port",
			Aliases:     []string{"P"},
			Usage:       "Port of server",
			EnvVars:     []string{"GRPSHUFFLE_PORT"},
			Value:       13333,
			Destination: &grpshuffleClient.Port,
		},
		&cli.BoolFlag{
			Name:        "no-tls",
			Usage:       "If this flag is enabled, TLS is not used.",
			EnvVars:     []string{"GRPSHUFFLE_NO_TLS"},
			Value:       false,
			Destination: &grpshuffleClient.NoTLS,
		},
	}
}