summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
authorAlex Flint <[email protected]>2022-10-29 15:19:23 -0400
committerAlex Flint <[email protected]>2022-10-29 15:19:23 -0400
commit3d95a706a6a1cc80d62f403778c5d160698003b0 (patch)
treeb451fc515320dc6721dacc601b799266a8f78c3b /usage.go
parentd949871b676ed52669c17c2070dfb770b6ce28da (diff)
parentdbc2ba5d0c9a6a439d1f825f8c299fb276bbc911 (diff)
Merge remote-tracking branch 'origin/master' into default-value-issue
Diffstat (limited to 'usage.go')
-rw-r--r--usage.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/usage.go b/usage.go
index 7d2a517..7a480c3 100644
--- a/usage.go
+++ b/usage.go
@@ -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) {