diff options
| author | Emmanouil "Manolis" Maragkakis <[email protected]> | 2017-01-23 20:41:12 -0500 |
|---|---|---|
| committer | Emmanouil "Manolis" Maragkakis <[email protected]> | 2017-01-23 20:41:12 -0500 |
| commit | db274311536204025bd248faaa74347707be9d76 (patch) | |
| tree | 9fb9264188c1c93a7340885797956e86dad97075 /usage.go | |
| parent | 7c77c70f8528a7b3310820aeec46d56a5be1ba70 (diff) | |
add support for description string
Diffstat (limited to 'usage.go')
| -rw-r--r-- | usage.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) } |
