add cli parameter

This commit is contained in:
louis-zhou 2022-01-19 17:56:28 +08:00
parent de8c4d782d
commit 242fcacae0

View file

@ -118,6 +118,12 @@ func GetFlags(hostname string) []cli.Flag {
Value: "",
Usage: "Address + API Port (e.g. 1.2.3.4:8081) of Netmaker server.",
},
&cli.StringFlag{
Name: "grpcssl",
EnvVars: []string{"NETCLIENT_GRPCSSL"},
Value: "",
Usage: "Tells clients to use SSL to connect to GRPC if 'on'. Disable if 'off'. Off by default.",
},
&cli.StringFlag{
Name: "key",
Aliases: []string{"k"},