From de4959fe7b7a6a1ab7a7a12462222efe95fbb661 Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Fri, 1 Mar 2024 19:00:29 +0300 Subject: [PATCH] cmd: fix the output of the `Usage` section (#6138) --- cmd/cobra.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cobra.go b/cmd/cobra.go index d43b4372..1a250920 100644 --- a/cmd/cobra.go +++ b/cmd/cobra.go @@ -117,7 +117,7 @@ func onlyVersionText() string { func caddyCmdToCobra(caddyCmd Command) *cobra.Command { cmd := &cobra.Command{ - Use: caddyCmd.Name, + Use: caddyCmd.Name + " " + caddyCmd.Usage, Short: caddyCmd.Short, Long: caddyCmd.Long, }