From cf7afb2511bd6ac55e6b264ad1fdfc6a4c70ce8d Mon Sep 17 00:00:00 2001 From: Oli Evans Date: Thu, 22 Oct 2020 20:35:50 +0100 Subject: [PATCH] fix: show subcommand info in short help if there are any - only invite the user to check help for subcommands if there are any - invite the user to check out the LongHelp for this command with --help License: MIT Signed-off-by: Oli Evans --- cli/helptext.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/helptext.go b/cli/helptext.go index 5458bb2b..22230476 100644 --- a/cli/helptext.go +++ b/cli/helptext.go @@ -110,9 +110,11 @@ const shortHelpFormat = `USAGE {{end}}{{if .Subcommands}} SUBCOMMANDS {{.Subcommands}} -{{end}}{{if .MoreHelp}} {{.Indent}}For more information about each command, use: {{.Indent}}'{{.Path}} --help' +{{end}}{{if .MoreHelp}} +{{.Indent}}for more information about this command, use: +{{.Indent}}'{{.Path}} --help' {{end}} `