diff options
| author | Sebastiaan Pasterkamp <[email protected]> | 2022-09-17 12:39:31 +0200 |
|---|---|---|
| committer | Sebastiaan Pasterkamp <[email protected]> | 2022-09-17 12:55:00 +0200 |
| commit | c8b9567d1ba7f0ab20f93b60e5a8344c2c23c110 (patch) | |
| tree | ab25f483d8ecd88e24e2e2d9f0c8726243816f3f /usage.go | |
| parent | ebd7a68a06bef58b87c1fd21c2e7db383adbcbf3 (diff) | |
Feat: Add epilog after help text
Similar to the Description at the top of the
help text an Epilog is added at the bottom.
Resolves #189
Diffstat (limited to 'usage.go')
| -rw-r--r-- | usage.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -290,6 +290,10 @@ func (p *Parser) writeHelpForSubcommand(w io.Writer, cmd *command) { printTwoCols(w, subcmd.name, subcmd.help, "", "") } } + + if p.epilogue != "" { + fmt.Fprintln(w, "\n"+p.epilogue) + } } func (p *Parser) printOption(w io.Writer, spec *spec) { |
