print description in help message, not in usage

This commit is contained in:
Emmanouil "Manolis" Maragkakis 2017-02-08 11:41:07 -05:00
parent bf73829f30
commit 9030aa1348
1 changed files with 3 additions and 3 deletions

View File

@ -29,9 +29,6 @@ func (p *Parser) WriteUsage(w io.Writer) {
}
}
if p.description != "" {
fmt.Fprintln(w, p.description)
}
if p.version != "" {
fmt.Fprintln(w, p.version)
}
@ -76,6 +73,9 @@ func (p *Parser) WriteHelp(w io.Writer) {
}
}
if p.description != "" {
fmt.Fprintln(w, p.description)
}
p.WriteUsage(w)
// write the list of positionals