Skip to content

Commit

Permalink
fixup! Add word-wrap support, with wrap length provided by the user
Browse files Browse the repository at this point in the history
document wrapAt in the HelpPrinterCustom comments
  • Loading branch information
mostynb committed Nov 7, 2020
1 parent 5b5e431 commit 92df777
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions help.go
Expand Up @@ -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
Expand Down

0 comments on commit 92df777

Please sign in to comment.