summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
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)
}