func NewClientName(prefix clix.FlagPrefix, name string, opts ...Option) *Client {
	cfg := newConfig(opts...)

	var (
		nameNetwork       = clix.NewFlagNameAlias(prefix, name, "network", "net")
		nameAddress       = clix.NewFlagNameAlias(prefix, name, "address", "addr")
		nameTLSCert       = clix.NewFlagNameAlias(prefix, name, "tls-cert", "tlscrt")
		nameTLSKey        = clix.NewFlagNameAlias(prefix, name, "tls-cert-key", "tlskey")
		nameTLSCAs        = clix.NewFlagNameAlias(prefix, name, "tls-ca", "tlsca")
		nameTLSServerName = clix.NewFlagNameAlias(prefix, name, "tls-server-name", "tlssrv")
		nameTLSSkipVerify = clix.NewFlagNameAlias(prefix, name, "tls-skip-verify", "tlsinsecure")
		nameTLSMinVer     = clix.NewFlagNameAlias(prefix, name, "tls-min-version", "tlsmin")
		nameTLSMaxVer     = clix.NewFlagNameAlias(prefix, name, "tls-max-version", "tlsmax")
	)

	network := cfg.networkValue()

	return &Client{
		Name: name,

		PredeterminedFlagNetwork: cfg.networkPredetermined(),

		DisableTLS: cfg.tlsDisabled,

		FlagNetwork: &cli.StringFlag{
			Name:        nameNetwork.Name,
			Aliases:     nameNetwork.Aliases,
			Usage:       "network to connect" + cfg.networkUsage(),
			EnvVars:     nameNetwork.EnvVars,
			FilePath:    nameNetwork.FilePath,
			Required:    cfg.networkRequired(),
			Value:       network,
			Destination: &network,
		},

		FlagAddress: &cli.StringFlag{
			Name:        nameAddress.Name,
			Aliases:     nameAddress.Aliases,
			Usage:       "address to connect",
			EnvVars:     nameAddress.EnvVars,
			FilePath:    nameAddress.FilePath,
			Required:    cfg.addressRequired(),
			Value:       cfg.address,
			Destination: new(string),
		},

		FlagTLSCerts: &cli.StringSliceFlag{
			Name:        nameTLSCert.Name,
			Aliases:     nameTLSCert.Aliases,
			Usage:       "certificate `file`",
			EnvVars:     nameTLSCert.EnvVars,
			FilePath:    nameTLSCert.FilePath,
			TakesFile:   true,
			Destination: &cli.StringSlice{},
		},

		FlagTLSKeys: &cli.StringSliceFlag{
			Name:        nameTLSKey.Name,
			Aliases:     nameTLSKey.Aliases,
			Usage:       "private key `file` of certificate",
			EnvVars:     nameTLSKey.EnvVars,
			FilePath:    nameTLSKey.FilePath,
			TakesFile:   true,
			Destination: &cli.StringSlice{},
		},

		FlagTLSCAs: &cli.StringSliceFlag{
			Name:        nameTLSCAs.Name,
			Aliases:     nameTLSCAs.Aliases,
			Usage:       "root CA `file` of server",
			EnvVars:     nameTLSCAs.EnvVars,
			FilePath:    nameTLSCAs.FilePath,
			TakesFile:   true,
			Destination: &cli.StringSlice{},
		},

		FlagTLSServerName: &cli.StringFlag{
			Name:        nameTLSServerName.Name,
			Aliases:     nameTLSServerName.Aliases,
			Usage:       "server name for verification",
			EnvVars:     nameTLSServerName.EnvVars,
			FilePath:    nameTLSServerName.FilePath,
			Destination: new(string),
		},

		FlagTLSSkipVerify: &cli.BoolFlag{
			Name:        nameTLSSkipVerify.Name,
			Aliases:     nameTLSSkipVerify.Aliases,
			Usage:       "TLS insecure skip verify",
			EnvVars:     nameTLSSkipVerify.EnvVars,
			FilePath:    nameTLSSkipVerify.FilePath,
			Value:       cfg.skipVerify,
			Destination: new(bool),
		},

		FlagTLSMinVer: &cli.GenericFlag{
			Name:     nameTLSMinVer.Name,
			Aliases:  nameTLSMinVer.Aliases,
			Usage:    "TLS minimum version",
			EnvVars:  nameTLSMinVer.EnvVars,
			FilePath: nameTLSMinVer.FilePath,
			Value:    NewTLSVersion(cfg.tlsMinVersion),
		},

		FlagTLSMaxVer: &cli.GenericFlag{
			Name:     nameTLSMaxVer.Name,
			Aliases:  nameTLSMaxVer.Aliases,
			Usage:    "TLS maximum version",
			EnvVars:  nameTLSMaxVer.EnvVars,
			FilePath: nameTLSMaxVer.FilePath,
			Value:    NewTLSVersion(cfg.tlsMaxVersion),
		},

		FlagSet: clix.NewFlagSet(),
	}
}
// NewClientName returns *Client.
NewClientName returns *Client.
// NewClientName returns * Client .
func NewClientName(prefix clix.FlagPrefix, name string, opts ...Option) *Client {
	cfg := newConfig(opts...)
	var (
		nameNetwork       = clix.NewFlagNameAlias(prefix, name, "network", "net")
		nameAddress       = clix.NewFlagNameAlias(prefix, name, "address", "addr")
		nameTLSCert       = clix.NewFlagNameAlias(prefix, name, "tls-cert", "tlscrt")
		nameTLSKey        = clix.NewFlagNameAlias(prefix, name, "tls-cert-key", "tlskey")
		nameTLSCAs        = clix.NewFlagNameAlias(prefix, name, "tls-ca", "tlsca")
		nameTLSServerName = clix.NewFlagNameAlias(prefix, name, "tls-server-name", "tlssrv")
		nameTLSSkipVerify = clix.NewFlagNameAlias(prefix, name, "tls-skip-verify", "tlsinsecure")
		nameTLSMinVer     = clix.NewFlagNameAlias(prefix, name, "tls-min-version", "tlsmin")
		nameTLSMaxVer     = clix.NewFlagNameAlias(prefix, name, "tls-max-version", "tlsmax")
	)
	network := cfg.networkValue()
	return &Client{
		Name: name,
		PredeterminedFlagNetwork: cfg.networkPredetermined(),
		DisableTLS: cfg.tlsDisabled,
		FlagNetwork: &cli.StringFlag{
			Name:        nameNetwork.Name,
			Aliases:     nameNetwork.Aliases,
			Usage:       "network to connect" + cfg.networkUsage(),
			EnvVars:     nameNetwork.EnvVars,
			FilePath:    nameNetwork.FilePath,
			Required:    cfg.networkRequired(),
			Value:       network,
			Destination: &network,
		},
		FlagAddress: &cli.StringFlag{
			Name:        nameAddress.Name,
			Aliases:     nameAddress.Aliases,
			Usage:       "address to connect",
			EnvVars:     nameAddress.EnvVars,
			FilePath:    nameAddress.FilePath,
			Required:    cfg.addressRequired(),
			Value:       cfg.address,
			Destination: new(string),
		},
		FlagTLSCerts: &cli.StringSliceFlag{
			Name:        nameTLSCert.Name,
			Aliases:     nameTLSCert.Aliases,
			Usage:       "certificate `file`",
			EnvVars:     nameTLSCert.EnvVars,
			FilePath:    nameTLSCert.FilePath,
			TakesFile:   true,
			Destination: &cli.StringSlice{},
		},
		FlagTLSKeys: &cli.StringSliceFlag{
			Name:        nameTLSKey.Name,
			Aliases:     nameTLSKey.Aliases,
			Usage:       "private key `file` of certificate",
			EnvVars:     nameTLSKey.EnvVars,
			FilePath:    nameTLSKey.FilePath,
			TakesFile:   true,
			Destination: &cli.StringSlice{},
		},
		FlagTLSCAs: &cli.StringSliceFlag{
			Name:        nameTLSCAs.Name,
			Aliases:     nameTLSCAs.Aliases,
			Usage:       "root CA `file` of server",
			EnvVars:     nameTLSCAs.EnvVars,
			FilePath:    nameTLSCAs.FilePath,
			TakesFile:   true,
			Destination: &cli.StringSlice{},
		},
		FlagTLSServerName: &cli.StringFlag{
			Name:        nameTLSServerName.Name,
			Aliases:     nameTLSServerName.Aliases,
			Usage:       "server name for verification",
			EnvVars:     nameTLSServerName.EnvVars,
			FilePath:    nameTLSServerName.FilePath,
			Destination: new(string),
		},
		FlagTLSSkipVerify: &cli.BoolFlag{
			Name:        nameTLSSkipVerify.Name,
			Aliases:     nameTLSSkipVerify.Aliases,
			Usage:       "TLS insecure skip verify",
			EnvVars:     nameTLSSkipVerify.EnvVars,
			FilePath:    nameTLSSkipVerify.FilePath,
			Value:       cfg.skipVerify,
			Destination: new(bool),
		},
		FlagTLSMinVer: &cli.GenericFlag{
			Name:     nameTLSMinVer.Name,
			Aliases:  nameTLSMinVer.Aliases,
			Usage:    "TLS minimum version",
			EnvVars:  nameTLSMinVer.EnvVars,
			FilePath: nameTLSMinVer.FilePath,
			Value:    NewTLSVersion(cfg.tlsMinVersion),
		},
		FlagTLSMaxVer: &cli.GenericFlag{
			Name:     nameTLSMaxVer.Name,
			Aliases:  nameTLSMaxVer.Aliases,
			Usage:    "TLS maximum version",
			EnvVars:  nameTLSMaxVer.EnvVars,
			FilePath: nameTLSMaxVer.FilePath,
			Value:    NewTLSVersion(cfg.tlsMaxVersion),
		},
		FlagSet: clix.NewFlagSet(),
	}
}
func NewClientName ( prefix clix . FlagPrefix , name string , opts ... Option ) * Client { cfg := newConfig ( opts ... ) var ( nameNetwork = clix . NewFlagNameAlias ( prefix , name , " " , " " ) nameAddress = clix . NewFlagNameAlias ( prefix , name , " " , " " ) nameTLSCert = clix . NewFlagNameAlias ( prefix , name , " " , " " ) nameTLSKey = clix . NewFlagNameAlias ( prefix , name , " " , " " ) nameTLSCAs = clix . NewFlagNameAlias ( prefix , name , " " , " " ) nameTLSServerName = clix . NewFlagNameAlias ( prefix , name , " " , " " ) nameTLSSkipVerify = clix . NewFlagNameAlias ( prefix , name , " " , " " ) nameTLSMinVer = clix . NewFlagNameAlias ( prefix , name , " " , " " ) nameTLSMaxVer = clix . NewFlagNameAlias ( prefix , name , " " , " " ) ) network := cfg . networkValue ( ) return & Client { Name : name , PredeterminedFlagNetwork : cfg . networkPredetermined ( ) , DisableTLS : cfg . tlsDisabled , FlagNetwork : & cli . StringFlag { Name : nameNetwork . Name , Aliases : nameNetwork . Aliases , Usage : " " + cfg . networkUsage ( ) , EnvVars : nameNetwork . EnvVars , FilePath : nameNetwork . FilePath , Required : cfg . networkRequired ( ) , Value : network , Destination : & network , } , FlagAddress : & cli . StringFlag { Name : nameAddress . Name , Aliases : nameAddress . Aliases , Usage : " " , EnvVars : nameAddress . EnvVars , FilePath : nameAddress . FilePath , Required : cfg . addressRequired ( ) , Value : cfg . address , Destination : new ( string ) , } , FlagTLSCerts : & cli . StringSliceFlag { Name : nameTLSCert . Name , Aliases : nameTLSCert . Aliases , Usage : " " , EnvVars : nameTLSCert . EnvVars , FilePath : nameTLSCert . FilePath , TakesFile : true , Destination : & cli . StringSlice { } , } , FlagTLSKeys : & cli . StringSliceFlag { Name : nameTLSKey . Name , Aliases : nameTLSKey . Aliases , Usage : " " , EnvVars : nameTLSKey . EnvVars , FilePath : nameTLSKey . FilePath , TakesFile : true , Destination : & cli . StringSlice { } , } , FlagTLSCAs : & cli . StringSliceFlag { Name : nameTLSCAs . Name , Aliases : nameTLSCAs . Aliases , Usage : " " , EnvVars : nameTLSCAs . EnvVars , FilePath : nameTLSCAs . FilePath , TakesFile : true , Destination : & cli . StringSlice { } , } , FlagTLSServerName : & cli . StringFlag { Name : nameTLSServerName . Name , Aliases : nameTLSServerName . Aliases , Usage : " " , EnvVars : nameTLSServerName . EnvVars , FilePath : nameTLSServerName . FilePath , Destination : new ( string ) , } , FlagTLSSkipVerify : & cli . BoolFlag { Name : nameTLSSkipVerify . Name , Aliases : nameTLSSkipVerify . Aliases , Usage : " " , EnvVars : nameTLSSkipVerify . EnvVars , FilePath : nameTLSSkipVerify . FilePath , Value : cfg . skipVerify , Destination : new ( bool ) , } , FlagTLSMinVer : & cli . GenericFlag { Name : nameTLSMinVer . Name , Aliases : nameTLSMinVer . Aliases , Usage : " " , EnvVars : nameTLSMinVer . EnvVars , FilePath : nameTLSMinVer . FilePath , Value : NewTLSVersion ( cfg . tlsMinVersion ) , } , FlagTLSMaxVer : & cli . GenericFlag { Name : nameTLSMaxVer . Name , Aliases : nameTLSMaxVer . Aliases , Usage : " " , EnvVars : nameTLSMaxVer . EnvVars , FilePath : nameTLSMaxVer . FilePath , Value : NewTLSVersion ( cfg . tlsMaxVersion ) , } , FlagSet : clix . NewFlagSet ( ) , } }
NewClientName returns *Client.
NewClientName returns * Client .