Skip to content

Commit abd8def

Browse files
Stebalienhannahhoward
authored andcommitted
helptext: rework usage footer to avoid long lines
1 parent ec412e7 commit abd8def

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cli/helptext.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ const longHelpFormat = `USAGE
9595
{{end}}{{if .Subcommands}}SUBCOMMANDS
9696
{{.Subcommands}}
9797
98-
{{.Indent}}Use '{{.Path}} <subcmd> --help' for more information about each command.
98+
{{.Indent}}For more information about each command, use:
99+
{{.Indent}}'{{.Path}} <subcmd> --help'
99100
{{end}}
100101
`
101102
const shortHelpFormat = `USAGE
@@ -108,7 +109,8 @@ const shortHelpFormat = `USAGE
108109
SUBCOMMANDS
109110
{{.Subcommands}}
110111
{{end}}{{if .MoreHelp}}
111-
Use '{{.Path}} --help' for more information about this command.
112+
{{.Indent}}For more information about each command, use:
113+
{{.Indent}}'{{.Path}} <subcmd> --help'
112114
{{end}}
113115
`
114116

0 commit comments

Comments
 (0)