Skip to content

Commit

Permalink
helptext: rework usage footer to avoid long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jan 17, 2019
1 parent 32cf9b1 commit faa3c14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/helptext.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ const longHelpFormat = `USAGE
{{end}}{{if .Subcommands}}SUBCOMMANDS
{{.Subcommands}}
{{.Indent}}Use '{{.Path}} <subcmd> --help' for more information about each command.
{{.Indent}}For more information about each command, use:
{{.Indent}}{{.Path}} <subcmd> --help
{{end}}
`
const shortHelpFormat = `USAGE
Expand All @@ -109,7 +110,8 @@ const shortHelpFormat = `USAGE
SUBCOMMANDS
{{.Subcommands}}
{{end}}{{if .MoreHelp}}
Use '{{.Path}} --help' for more information about this command.
For more information about each command, use:
{{.Path}} <subcmd> --help
{{end}}
`

Expand Down

0 comments on commit faa3c14

Please sign in to comment.