summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
authorAlex Flint <[email protected]>2017-01-24 08:29:43 -0800
committerGitHub <[email protected]>2017-01-24 08:29:43 -0800
commitbf73829f30862b02fc610e8f9991747a850f4197 (patch)
tree9fb9264188c1c93a7340885797956e86dad97075 /usage.go
parent7c77c70f8528a7b3310820aeec46d56a5be1ba70 (diff)
parentdb274311536204025bd248faaa74347707be9d76 (diff)
Merge pull request #41 from mnsmar/master
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)
}