diff options
author | Zhenguo Niu <Niu.ZGlinux@gmail.com> | 2018-04-18 07:50:25 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-04-18 07:50:25 +0800 |
commit | 661f5f3dac23939630e3bf2f9ed2bf1bfb26e990 (patch) | |
tree | 94c4daf208a5e790a22c9a52e03535105b24a07d /cmd | |
parent | 49e38c970eb06d2da22e1fabf1775164ecb068e9 (diff) | |
download | dexon-661f5f3dac23939630e3bf2f9ed2bf1bfb26e990.tar dexon-661f5f3dac23939630e3bf2f9ed2bf1bfb26e990.tar.gz dexon-661f5f3dac23939630e3bf2f9ed2bf1bfb26e990.tar.bz2 dexon-661f5f3dac23939630e3bf2f9ed2bf1bfb26e990.tar.lz dexon-661f5f3dac23939630e3bf2f9ed2bf1bfb26e990.tar.xz dexon-661f5f3dac23939630e3bf2f9ed2bf1bfb26e990.tar.zst dexon-661f5f3dac23939630e3bf2f9ed2bf1bfb26e990.zip |
cmd/utils: fix help template issue for subcommands (#16351)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/utils/flags.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 4f3d81f5d..ba8378ef2 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -64,7 +64,7 @@ var ( {{if .cmd.Description}}{{.cmd.Description}} {{end}}{{if .cmd.Subcommands}} SUBCOMMANDS: - {{range .cmd.Subcommands}}{{.cmd.Name}}{{with .cmd.ShortName}}, {{.cmd}}{{end}}{{ "\t" }}{{.cmd.Usage}} + {{range .cmd.Subcommands}}{{.Name}}{{with .ShortName}}, {{.}}{{end}}{{ "\t" }}{{.Usage}} {{end}}{{end}}{{if .categorizedFlags}} {{range $idx, $categorized := .categorizedFlags}}{{$categorized.Name}} OPTIONS: {{range $categorized.Flags}}{{"\t"}}{{.}} |