Skip to content

Commit f4e8230

Browse files
committed
helptext: rework usage footer to avoid long lines
1 parent 32cf9b1 commit f4e8230

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cli/helptext.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ const longHelpFormat = `USAGE
9696
{{end}}{{if .Subcommands}}SUBCOMMANDS
9797
{{.Subcommands}}
9898
99-
{{.Indent}}Use '{{.Path}} <subcmd> --help' for more information about each command.
99+
{{.Indent}}For more information about each command, use:
100+
{{.Indent}}'{{.Path}} <subcmd> --help'
100101
{{end}}
101102
`
102103
const shortHelpFormat = `USAGE
@@ -109,7 +110,8 @@ const shortHelpFormat = `USAGE
109110
SUBCOMMANDS
110111
{{.Subcommands}}
111112
{{end}}{{if .MoreHelp}}
112-
Use '{{.Path}} --help' for more information about this command.
113+
{{.Indent}}For more information about each command, use:
114+
{{.Indent}}'{{.Path}} <subcmd> --help'
113115
{{end}}
114116
`
115117

0 commit comments

Comments
 (0)