mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-25 01:48:09 +08:00
cmd: fix the output of the Usage
section (#6138)
This commit is contained in:
parent
03f703a00e
commit
de4959fe7b
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user