Skip to content

Commit 9bb7021

Browse files
committed
Add extra newline after additionalHelp output
The additionalHelp message is printed at the end of the --help output; To get more help with docker, check out our guides at https://docs.docker.com/go/guides/ PS> As this message may contain an URL, users may copy/paste the URL to open it in their browser, but can easily end up copying their prompt (as there's no whitespace after it), and as a result end up on a broken URL, for example: https://docs.docker.com/go/guides/PS This patch adds an extra newline at the end to provide some whitespace around the message, making it less error-prone to copy the URL; To get more help with docker, check out our guides at https://docs.docker.com/go/guides/ PS> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 59e74b4 commit 9bb7021

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/cobra.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ Run '{{.CommandPath}} COMMAND --help' for more information on a command.
511511
{{- if hasAdditionalHelp .}}
512512
513513
{{ additionalHelp . }}
514+
514515
{{- end}}
515516
`
516517

0 commit comments

Comments
 (0)