Skip to content

Commit

Permalink
fix: show correct usage of sub commands
Browse files Browse the repository at this point in the history
  • Loading branch information
msvticket committed Feb 28, 2025
1 parent 6701959 commit 292519b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 292519b

Please sign in to comment.