cmd: fix the output of the Usage section (#6138)

This commit is contained in:
Mohammed Al Sahaf 2024-03-01 19:00:29 +03:00 committed by GitHub
parent 03f703a00e
commit de4959fe7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,7 +117,7 @@ func onlyVersionText() string {
func caddyCmdToCobra(caddyCmd Command) *cobra.Command { func caddyCmdToCobra(caddyCmd Command) *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: caddyCmd.Name, Use: caddyCmd.Name + " " + caddyCmd.Usage,
Short: caddyCmd.Short, Short: caddyCmd.Short,
Long: caddyCmd.Long, Long: caddyCmd.Long,
} }