From 292519b7a29cb0007d444ad8ac27e176e653c13c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Svantesson?= Date: Fri, 28 Feb 2025 12:23:01 +0100 Subject: [PATCH] fix: show correct usage of sub commands --- pkg/cmd/root.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/root.go b/pkg/cmd/root.go index 023f550..12ec491 100644 --- a/pkg/cmd/root.go +++ b/pkg/cmd/root.go @@ -18,7 +18,9 @@ import ( // Main creates the new command func Main() *cobra.Command { cmd := &cobra.Command{ - Use: rootcmd.TopLevelCommand, + Annotations: map[string]string{ + cobra.CommandDisplayNameAnnotation: rootcmd.TopLevelCommand, + }, Short: "commands for creating and upgrading Jenkins X environments using GitOps", Run: func(cmd *cobra.Command, args []string) { err := cmd.Help()