aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorZhenguo Niu <Niu.ZGlinux@gmail.com>2018-04-18 07:50:25 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-04-18 07:50:25 +0800
commit661f5f3dac23939630e3bf2f9ed2bf1bfb26e990 (patch)
tree94c4daf208a5e790a22c9a52e03535105b24a07d /cmd/utils
parent49e38c970eb06d2da22e1fabf1775164ecb068e9 (diff)
downloadgo-tangerine-661f5f3dac23939630e3bf2f9ed2bf1bfb26e990.tar.gz
go-tangerine-661f5f3dac23939630e3bf2f9ed2bf1bfb26e990.tar.zst
go-tangerine-661f5f3dac23939630e3bf2f9ed2bf1bfb26e990.zip
cmd/utils: fix help template issue for subcommands (#16351)
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/flags.go2
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"}}{{.}}