diff options
| author | Alex Flint <[email protected]> | 2017-02-09 10:16:44 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-02-09 10:16:44 -0800 |
| commit | b658405f709bae83d82b39f2669c6f9138f1b12c (patch) | |
| tree | d331ead7e99d5c0ef24e3a1ad1e17f762c8e4c1d | |
| parent | bf73829f30862b02fc610e8f9991747a850f4197 (diff) | |
| parent | 9030aa13481d295245d54663e071e2ba76ab433d (diff) | |
Merge pull request #43 from mnsmar/master
print description in help message, not in usage
| -rw-r--r-- | usage.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
