@cryptotaxi247 / kubo / commits / 4489021ff

Show Synopsis in long help

I think that this is useful, even though it is also shown in the Arguments and Options section below. What do you think, @noffle? License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>

Richard Littauer committed May 12, 2016 at 14:09 UTC 4489021fff1c5be449ad3b617d294ad12ea4bb98
1 file changed +5 -1
commands/cli/helptext.go
+5 -1
@@ -77,7 +77,11 @@ const usageFormat = "{{if .Usage}}{{.Usage}}{{else}}{{.Path}}{{if .ArgUsage}} {{
77 const longHelpFormat = `USAGE
78 {{.Indent}}{{template "usage" .}}
79
80 -{{if .Arguments}}ARGUMENTS
80 +{{if .Synopsis}}SYNOPSIS
81 +
82 +{{.Synopsis}}
83 +
84 +{{end}}{{if .Arguments}}ARGUMENTS
85
86 {{.Arguments}}
87