diff --git a/pkg/cli/flags.go b/pkg/cli/flags.go index 647419c48e30..60f6878fa1ba 100644 --- a/pkg/cli/flags.go +++ b/pkg/cli/flags.go @@ -647,6 +647,7 @@ func init() { if cmd == createClientCertCmd { cliflagcfg.VarFlag(f, &tenantIDSetter{tenantIDs: &certCtx.tenantScope}, cliflags.TenantScope) cliflagcfg.VarFlag(f, &tenantNameSetter{tenantNames: &certCtx.tenantNameScope}, cliflags.TenantScopeByNames) + _ = f.MarkHidden(cliflags.TenantScopeByNames.Name) // PKCS8 key format is only available for the client cert command. cliflagcfg.BoolFlag(f, &certCtx.generatePKCS8Key, cliflags.GeneratePKCS8Key)