From 92df7778ca3337f0c8a561925f9181740c20eed5 Mon Sep 17 00:00:00 2001 From: Mostyn Bramley-Moore Date: Sat, 7 Nov 2020 18:49:08 +0100 Subject: [PATCH] fixup! Add word-wrap support, with wrap length provided by the user document wrapAt in the HelpPrinterCustom comments --- help.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/help.go b/help.go index 340a9ade46..20e12761f9 100644 --- a/help.go +++ b/help.go @@ -59,6 +59,11 @@ var HelpPrinter helpPrinter = printHelp // HelpPrinterCustom is a function that writes the help output. It is used as // the default implementation of HelpPrinter, and may be called directly if // the ExtraInfo field is set on an App. +// +// In the default implementation, if the customFuncs argument contains a +// "wrapAt" key, which is a function which takes no arguments and returns +// an int, this int value will be used to produce a "wrap" function used +// by the default template to wrap long lines. var HelpPrinterCustom helpPrinterCustom = printHelpCustom // VersionPrinter prints the version for the App