From 4489021fff1c5be449ad3b617d294ad12ea4bb98 Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Thu, 12 May 2016 14:09:16 -0400 Subject: [PATCH] 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 --- commands/cli/helptext.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/commands/cli/helptext.go b/commands/cli/helptext.go index 866f45590..cceb3f90f 100644 --- a/commands/cli/helptext.go +++ b/commands/cli/helptext.go @@ -77,7 +77,11 @@ const usageFormat = "{{if .Usage}}{{.Usage}}{{else}}{{.Path}}{{if .ArgUsage}} {{ const longHelpFormat = `USAGE {{.Indent}}{{template "usage" .}} -{{if .Arguments}}ARGUMENTS +{{if .Synopsis}}SYNOPSIS + +{{.Synopsis}} + +{{end}}{{if .Arguments}}ARGUMENTS {{.Arguments}}