From 6bb9e1980eb85578f48ebbc96026b28ec88d4240 Mon Sep 17 00:00:00 2001 From: Sebastian Nickel Date: Mon, 28 Oct 2024 10:23:47 +0100 Subject: [PATCH] do not show --api-cluster and --log-api-address As these flags are only used internally during development, we hide them from the normal help output. --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 05bc032..6732188 100644 --- a/main.go +++ b/main.go @@ -31,8 +31,8 @@ import ( type flags struct { Project string `predictor:"resource_name" help:"Limit commands to a specific project." short:"p"` - APICluster string `help:"Context name of the API cluster." default:"${api_cluster}" env:"NCTL_API_CLUSTER"` - LogAPIAddress string `help:"Address of the deplo.io logging API server." default:"https://logs.deplo.io" env:"NCTL_LOG_ADDR"` + APICluster string `help:"Context name of the API cluster." default:"${api_cluster}" env:"NCTL_API_CLUSTER" hidden:""` + LogAPIAddress string `help:"Address of the deplo.io logging API server." default:"https://logs.deplo.io" env:"NCTL_LOG_ADDR" hidden:""` LogAPIInsecure bool `help:"Don't verify TLS connection to the logging API server." hidden:"" default:"false" env:"NCTL_LOG_INSECURE"` Version kong.VersionFlag `name:"version" help:"Print version information and quit."` }