summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
authorEmmanouil "Manolis" Maragkakis <[email protected]>2017-01-23 20:41:12 -0500
committerEmmanouil "Manolis" Maragkakis <[email protected]>2017-01-23 20:41:12 -0500
commitdb274311536204025bd248faaa74347707be9d76 (patch)
tree9fb9264188c1c93a7340885797956e86dad97075 /usage.go
parent7c77c70f8528a7b3310820aeec46d56a5be1ba70 (diff)
add support for description string
Diffstat (limited to 'usage.go')
-rw-r--r--usage.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/usage.go b/usage.go
index f096f58..c31a428 100644
--- a/usage.go
+++ b/usage.go
@@ -29,6 +29,9 @@ func (p *Parser) WriteUsage(w io.Writer) {
}
}
+ if p.description != "" {
+ fmt.Fprintln(w, p.description)
+ }
if p.version != "" {
fmt.Fprintln(w, p.version)
}